Is it possible to rotate a Div in cyclic rotation using javascript. I have four DIVs in an HTML page. I need to rotate those DIVs in a cyclic rotation.
If it's possible tell me now. It is urgent.
Is it possible to rotate a Div in cyclic rotation using javascript. I have four DIVs in an HTML page. I need to rotate those DIVs in a cyclic rotation.
If it's possible tell me now. It is urgent.
Not sure I understand the question, but take a look at the 'Cycle' jQuery plugin: http://www.malsup.com/jquery/cycle/
You may be able to use the Raphaël JavaScript library to accomplish something like this.
Steve
this could possibly be done... but not easily, and you wouldn't be able to maintain the original feeling of the content inside of the div.
unless i misunderstood your question, if your just talking about cycling through 4 divs... this is defiantly possible and very easy. But if your asking if you can rotate the actual div...
It's actually not hard:
Haven't tested, but that's about how it should work. Make sure you set css "position" property of those divs to absolute or fixed. Also take a look at parametric equation for circle.