1. Technology
Send to a Friend via Email

Rotating Object

2. The Script

clr gif
Join the Discussion

Questions? Comments?

More of this Feature

Introduction Identify Object

There is only one piece to the rotating object script. The first thing you need to do is to select the code from the text box below (there is a highlight all button beneath it to make this easier) and copy it into a file called rotate.js.

You next attach the script into your web page that you wish to create your rotation animation on by adding the following code into the head section of your page.

<script type="text/javascript" src="rotate.js">
</script>

The only thing left to do is to identify the object to be rotated.

Introduction | The Script | Identify Object

©2014 About.com. All rights reserved.