-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature idea: Controlled by another element #87
Comments
Unfortunately, I'm not working on adding new features to the library. I just wanted to provide a vanilla JS alternative for jQuery tilt.js. I'm focusing most of my free time on my Quick Cursor Android app. |
Okie dokie. Just an idea.
Wish you the best with your app.
…On Sun, 30 May 2021, 07:32 Șandor Sergiu, ***@***.***> wrote:
Unfortunately, I'm not working on adding new features to the library. I
just wanted to provide a vanilla JS alternative for jQuery tilt.js. I'm
focusing most of my free time on my Quick Cursor Android app.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#87 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AD3KMFPAFM6GJYXXHNMSALTTQHLYXANCNFSM45YPWPYA>
.
|
the documentation mentions a mouse-event-element option which allows you to choose an element. Is this the feature for this request? |
It looks like it was a pull request long time ago that added this functionality: #37 But from what I quickly tested, it doesn't work as expected: https://jsbin.com/vedijevote/1/edit?html,output It listens for events on the specified element, but it calculates the effect related to the main element, so it's not exactly what I expected. |
Hello there,
I like your script very much and I had an idea of a feature to add.
What if I wanted the prevent the element from tilting on mouse over but rather have the element tilt when I move the mouse another element?
If you included a
controller
option then I could set the controller to the selector of anotherdiv
, this way I could also control manytilt
elements with the same controller.Something like:
Or HTML:
You could even have a
custom
(ormanual
) API like so:This would make it possible to keep a counter variable and
tilt
the element inside asetInterval
for eg.What do you think of this idea?
The text was updated successfully, but these errors were encountered: