rstacruz / jquery.transit

Super-smooth CSS3 transformations and transitions for jQuery
http://ricostacruz.com/jquery.transit
7.29k stars 864 forks source link

Effects while scrolling #146

Open p0rcupine opened 11 years ago

p0rcupine commented 11 years ago

Well, this is not an issue really. It is a question for support so if you think I'm going too far, please ignore me.

I would like to ask you how to start an effect e.g. Translate X while scrolling down e.g. as I'm scrolling down when I reach a specific height say 100px from top I would like to start the Translate X effect.

Thanks in advance.

codeofsumit commented 11 years ago

@p0rcupine your question has nothing to do with this script, is not an issue with the script and is answered by typing the stuff into Google. To answer your question anyway - even though i don't want to encourage this behavior ;-) : use scrollTop() Detailed answer here: http://stackoverflow.com/questions/4957658/trigger-jquery-function-when-passed-half-way-down-the-page

p0rcupine commented 11 years ago

Yeap, you're right. It won't happen again.

Sorry for that and thanks for your answer.