Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.

Multiple sticky elements #6

Closed
ckdt opened this issue Aug 22, 2013 · 1 comment
Closed

Multiple sticky elements #6

ckdt opened this issue Aug 22, 2013 · 1 comment

Comments

@ckdt
Copy link

ckdt commented Aug 22, 2013

Hi there, I was wondering how and if it would be possible to have multiple stickyfloat elements that follow each other up.

For instance, i have multiple articles with big images in them, i want to have the description stuck until you reach the next article. Currently all the stickyfloat elements start being sticky when the first one is... Here is the demo http://ckdt.net/code/

I used this code
$(function() { $( ".post header" ).each(function() { $(this).stickyfloat( { duration: 400 } ); }); });

@yairEO
Copy link
Owner

yairEO commented Mar 17, 2014

you can use it with a 0 value for duration, the apply a css for each floating element, with a transition and a different transition-delay for every element, so they will look like they are moving one after the other

@yairEO yairEO closed this as completed Mar 17, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants