1. Tech

Your suggestion is on its way!

An email with a link to:


was emailed to:

Thanks for sharing About.com with others!

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">

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

Introduction | The Script | Identify Object

©2016 About.com. All rights reserved.