Change div css when user scrolls past it, using jQuery

后端 未结 3 1499
天涯浪人
天涯浪人 2020-12-16 07:54

When a user scrolls past a div I need it\'s css changed to position:fixed. Much like what is done here: http://imakewebthings.com/jquery-waypoints/shortcuts/sticky-elements/

3条回答
  •  执笔经年
    2020-12-16 08:40

    the page you reference uses jQuery:

    
    

    If you have specific questions ask away, but i doubt many will go through explaining the entire script for you.

提交回复
热议问题