Synchronized scrolling using jQuery?

后端 未结 8 1245
你的背包
你的背包 2020-11-28 09:29

I am trying to implement synchronized scrolling for two DIV with the following code.

DEMO

$(document).ready(function() {
    $(\"#div1\"         


        
8条回答
  •  广开言路
    2020-11-28 10:04

    I like pawel's clean solution but it lacks something I need and has a strange scrolling bug where it continues to scroll and my plugin will work on multiple containers not just two.

    http://www.xtf.dk/2015/12/jquery-plugin-synchronize-scroll.html

    Example & demo: http://trunk.xtf.dk/Project/ScrollSync/

    Plugin: http://trunk.xtf.dk/Project/ScrollSync/jquery.scrollSync.js

    $('.scrollable').scrollSync();

提交回复
热议问题