Jump to content


Check out our Community Blogs

john_c

Member Since 18 Jan 2012
Offline Last Active Jan 18 2012 06:26 PM
-----

Topics I've Started

Green with jquery, help with a timed animation effect.

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!

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