I am new to this forum and hope to pass a very nice time.
I have trouble with JQuery as i don’t understand it pretty well.
A lot of functions as i think of doing things, don’t happen.
Is there a good book to learn JQuery?
Both seem to do whatever they’re supposed to do. So it’s not really the jQuery that doesn’t work.
However there is a difference between hover and click. With hover, there is also a “not-hover” state. So when the mouse is on the element, it does one thing (move to the 100px position), and then it does another thing only when you move the mouse away from it again (move to the -92px position).
With click, it doesn’t exactly work like that; there isn’t really a “not-click” state in the same way that hover works. So, I believe that’s why the function that animates the element to -92px is triggered right away cause technically, the “not-click” state happens right when you stop clicking on it (letting go of the mouse button).
Hope that helps.
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
*May or may not contain any actual "CSS" or "Tricks".