Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Green with jquery, help with a timed animation effect.

jQuery jquery animation

  • Please log in to reply
No replies to this topic

#1 john_c

john_c

    CC Lurker

  • Just Joined
  • Pip
  • 1 posts

Posted 18 January 2012 - 06:02 PM

Hello!

Basically, I am making a rotation based animation effect with jquery, using the jqueryRotate plugin.

I need the image with the animation effect, to rotate part way in one direction, then rotate back to the beginning position, and repeat, continuously. Advice?

Here is a successful example of what I am needing, but with hover effects to trigger the rotation, instead of an automatic solution:

<script type="text/javascript">
$(".item").rotate({
bind:
{
mouseover : function() {
$(this).rotate({animateTo:60})
},
mouseout : function() {
$(this).rotate({animateTo:0})
}
}
});
</script>

Best solution?

Thanks!
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download