JQuery create a scroll follow div

后端 未结 5 1414
情歌与酒
情歌与酒 2021-01-01 07:52

ok I have seen people using position:fixed to have a div follow the scroll. I have also seen the following solution which is good ( Jquery follow scroll ) but

5条回答
  •  执念已碎
    2021-01-01 08:12

    This div in the example is not polsition:fixed, or absolute. What they do is to animate the margint-top attribute on scroll relatively

提交回复
热议问题