I asked this question earlier & was provided with some code, however it refuses to work when I put it inside of div’s as the site is structured so i’m retrying here.
here is the format of the page.
<div style="width:960px;">
<div style="float:left; width:960px;">
<a href='#'>Electric</a>
<a href='#'>Mechanic</a>
</div>
<div style="width:320px; float:left;">
<div id='elec'>Box 1a</div>
<div id='meca'>Box 2a</div>
</div>
<div style="width:320px; float:left;">
<img src="dial.png" style="margin-top:150px;">
</div>
<div style="width:320px; float:right;">
<div id='meca'>Box 2b</div>
<div id='elec'>Box 1b</div>
</div>
</div>
I’m basically wanting to replicate the services section on http://mitchell-me.com/
I’ll change it all etc later but the effect is killing me. I was given two suggestions last time, 1 was jquery which worked fine outside of div’s but since it has to be in the div’s i couldnt use it. The second was that the site was using tweenlite but that method seems overkill for just this particular feature.
So basically im struggling like mad, really need to wrap this section of the site up before xmas so hoping for some xmas luck here on stack overflow xD
Apologies for the code format, i can’t get it to sit properly using this editor.
whipped this together, let me know if it suits your needs.
here is a fiddle: http://jsfiddle.net/4FMGG/6/
css
html
javascript
must include the following libraries:
//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
//jqueryrotate.googlecode.com/files/jQueryRotate.2.2.js