Skip to content
Newer
Older
100644 21 lines (14 sloc) 505 Bytes
fa9d055 @mahonnaise demo link
authored
1 # jquery.cyclotron.js ([Demo](http://kaioa.com/k/test/cyclotron/index.html))
e6c9b97 @mahonnaise first commit
authored
2
c98052f @mahonnaise more markdown syntax
authored
3 ## 1. You need some element with a background image. E.g.:
e6c9b97 @mahonnaise first commit
authored
4
76146b8 @mahonnaise markdown syntax
authored
5 ```html
6 <div class="cycle" style="background:url(panorama.jpg);height:512px"></div>
7 ```
e6c9b97 @mahonnaise first commit
authored
8
c98052f @mahonnaise more markdown syntax
authored
9 ## 2. Cyclotronify:
e6c9b97 @mahonnaise first commit
authored
10
76146b8 @mahonnaise markdown syntax
authored
11 ```javascript
12 $(document).ready(function ($) {
13 $('.cycle').cyclotron();
14 });
15 ```
e6c9b97 @mahonnaise first commit
authored
16
c98052f @mahonnaise more markdown syntax
authored
17 ## 3. Options:
e6c9b97 @mahonnaise first commit
authored
18
19 `dampingFactor` - should be somewhere around 0.9, should be > 0 and < 1 (default: 0.93)
20
21 `historySize` - size of the array which stores the deltas (default: 5)
Something went wrong with that request. Please try again.