I don’t know if I am missing something obvieouse but, I thought you can animate images in jquery? Basically I want to achive something like that http://jsfiddle.net/Qm2FG/ but with price tags on this site http://nagomedia.blackflow.pl.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well you just use the code that you linked to in your question but you need to select the proper elements in your HTML document:
When I post this code into my developer console on your website, your tags start animating when I hover over them.
Notice the use of
.stop()which is useful when using the-=and+=modifiers.UPDATE
You need to either put your JS at the end of your HTML document (my personal favorite) or put the code in a document.ready event handler. Your code is trying to bind to elements that don’t yet exist, so no binding is taking place.
I like to put my JS code at the end of my HTML documents so they don’t block the rendering of the page. CSS goes in the
<head>so it is available to properly style the document and JS is placed at the bottom to run once the DOM has been setup.