First of all I would like to say I am a complete beginner to jquery. I would like to make these divs move round in a circle in a clockwise direction with a 500px diameter. How could i go about doing this?
<div id="move0" class="textBox"></div>
<div id="move1" class="textBox"></div>
<div id="move2" class="textBox"></div>
<div id="move3" class="textBox"></div>
Please look at my website http://tragicclothing.co.uk/T-Shirts.html This is what I want to be able to happen
Steps:
- Click on button in centre
- Images appear around this button (fade in)
- Rotate images slowly around this button
This works for me, and you can add as many
INPUT
elements in the HTML as you need.(Update: the JSFiddle link.)
Note: the original code had
INPUT
elements (because this is what I assumed with yourclass="textBox"
), thus theid
and CSSclass
names. You may use whatever naming you want.CSS3-only circular animation
This particular JSFiddle shows one element being rotated around some central point. CSS of it is actually really simple:
Basically all you'd have to do is convert these to CSS classes and then just add a click handler on your central button that would fade-in your images around it and add a CSS class to them so they would start rotating as well.