jQuery code to change position of element on scroll

后端 未结 2 893
时光取名叫无心
时光取名叫无心 2021-02-10 21:51

I have a bar which includes sharing and social icons. The bar is positioned below post title now like this:

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-10 22:12

    use position:sticky to make it.

    Here is the article explained.

    http://updates.html5rocks.com/2012/08/Stick-your-landings-position-sticky-lands-in-WebKit

    and old way of doing this demo

    with sticky position demo

提交回复
热议问题