-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
34 lines (23 loc) · 1.42 KB
/
README
File metadata and controls
34 lines (23 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Effect.Rotate is an extension to the popular script.aculo.us javascript framework (see http://script.aculo.us/ ) for dynamically rotating contents.
== Installation/Usage
Download the latest script.aculo.us package.
Copy script.aculo.us and effect.rotate.js to a dir
Add the following tags to the HEAD section of your HTML page (prototype is included in the script.aculo.us package):
<script src="js/prototype.js" type="text/javascript"></script>
<script src="js/effects.js" type="text/javascript"></script>
<script src="js/effect.rotate.js" type="text/javascript"></script>
use the Effect just like every other script.aculo.us effect:
new Effect.Rotate('idOfElement');
Available options:
degrees: integer (default: 90)
above zero: clockwise
below zero: counter clockwise
mode: ['relative' | 'absolute'] (default: 'relative')
if set to 'relative', the rotation will continue from any previous rotation
'absolute' will always start from 0 degrees
Elements rotated by this effect will get an additional property _rotation, which saves the current rotation value.
Issues with Internet Explorer: as IE7 & IE8 can't CSS-transforms, this effect only works with IE9.
== License
Effect.Rotate is licensed under the terms of the GPL License.
See the included GPL-license.txt file.
The sample image contained in the example folder are licensed under creative commons license.