Using Sticky Kit jQuery plugin, but can't figure out how to use the 'offset_top' option? -
has had experience using excellent sticky kit jquery plugin? http://leafo.net/sticky-kit/
i can't figure out how use 'offset_top' option? documentation options bit vague, example shown below:
$("#sticky_item").stick_in_parent(options)
i guess have write this:
$("#sticky_item").stick_in_parent(offset_top)
but how specify number of pixels want offset #sticky_item by?
any appreciated!
ah, figured out.
to add 20 pixel offset #sticky_item this:
$("#primary").stick_in_parent({offset_top: 20});
Comments
Post a Comment