forked from lecar-red/jquery-stickyfloat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
60 lines (35 loc) · 1.35 KB
/
README
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
jQuery - stickyfloat
Smart sticky floating box
=========================
Want your box to float beside you as you scroll, but ONLY in a
specific constrained area? or only on it's parents area? - you got it.
* Extremely useful for side-menus
* All in one vertical floating solution
Also supports sticky header inside divs with overflow of scroll or auto
when content exceeds size.
Parameters:
-----------
* duration - the duration of the animation
* startOffset - the amount of scroll offset after it the animations
kicks in
* offsetY - the offset from the top when the object is animated
* lockBottom - 'true' by default, set to false if you don't want
your floating box to stop at parent's bottom
Example:
--------
jQuery('#menu').stickyfloat({duration: 400});
or
$('.stickfloat').stickyfloat();
Resources
* [1]Design Woop
Great Blog Entry (this demo is hacked from there)
* [2]Previous Gist version
* [3]Github
* [4]jQuery
* [5] Orignal Plugin page (not working for me)
Footer
1. http://designwoop.com/2011/01/how-to-create-a-jquery-sticky-sidebar/
2. https://gist.github.com/728487
3. https://github.com/lecar-red/jquery-stickyfloat
4. http://jquery.com
5. http://archive.plugins.jquery.com/project/stickyfloat