Skip to content

Commit 790994a

Browse files
Update README.md
1 parent a73d061 commit 790994a

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

README.md

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,46 @@ A jQuery UI Widget which rotates any element by using CSS transform rotate(). In
1111
- Compatible with other jQuery UI widgets included Draggable and Resizable
1212
- Compatible with Dave Furfero's jQuery UI Touch Punch
1313
- All angles in degrees
14-
- AlsoRotate extension
14+
- "alsoRotate" extension (under construction)
15+
- "animate" extension (under construction)
1516

1617
### Requirements
17-
.
18+
- jQuery UI
1819

1920
### CDN
2021
.
2122

2223
### Options
23-
.
24+
25+
26+
{
27+
disabled: false,
28+
angle: 0,
29+
handle: true,
30+
handleElementSelector: '<div></div>',
31+
rotationOriginPosition: {
32+
top: null,
33+
left: null
34+
},
35+
snap: false,
36+
snapStep: 22.5,
37+
rotate: function (event, ui) {}, // callback while rotating
38+
start: function (event, ui) {}, // callback when rotation starts
39+
stop: function (event, ui) {}, // callback when rotation stops
40+
wheel: true,
41+
wheelStep: 7.5
42+
}
43+
44+
2445

2546
### Used CSS Classes
26-
.
47+
48+
49+
.ui-rotatable {}
50+
.ui-rotatable-rotating {}
51+
.ui-rotatable-handle {}
52+
53+
2754

2855
### Usages
2956

0 commit comments

Comments
 (0)