JSFiddle - React, Tailwind, and code Playground
by jwpg018241
HTML
<div id="div1">
On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look. You can easily change the formatting of
</div>
<div id="div2">
On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document. You can use ㅁㄴㅇ1ㄹ56ㅁ1ㄴ5ㅇ6ㄹ156ㅁㄴ1ㅇㄹ651ㅁㄴ65ㅇ1ㄹ56ㅁ1ㄴ56ㅇㄹ1ㅂ5ㅈ6ㄷ1ㄹ56ㅂㅈ1ㄷ65ㄹ1ㅂㅈ65ㄷ1ㄹ6512635ㄹㄷ1ㅈ6ㅂ51ㄹ561ㅇㄴ65ㄹㅁㅍ156ㅁ1ㄴㄷㅇㄹ561ㅁㄴ65ㅇㄹ156ㅂㅈ1ㄷ56ㄹ165ㅁㅈ1ㄹㅇ65ㅁㄴ16ㅇ5ㄹ16ㅁㄴ1ㅇㄹ651ㅂㅈ65ㄷㄹ165ㅁㅈㅇㄹthese galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current document look. You can easily change the formatting of selected text in the document text by choosing a look for the selected text from the Quick Styles gallery on the Home tab. You can also format text directly by using the other controls on the Home tab. Most controls offer a choice of using the look from the current theme or using a format that you specify directly. To change the overall look of your document, choose new Theme elements on the Page Layout tab. To change the looks available in the Quick Style gallery, use the Change Current Quick Style Set command. Both the Themes gallery and the Quick Styles gallery provide reset commands so that you can always restore the look of your document to the original contained in your current template. On the Insert tab, the galleries include items that are designed to coordinate with the overall look of your document.
You can use these galleries to insert tables, headers, footers, lists, cover pages, and other document building blocks. When you create pictures, charts, or diagrams, they also coordinate with your current...
CSS
div {
overflow: scroll;
float: left;
text-align: justify;
}
#div1 {
height : 300px;
width: 200px;
}
#div2 {
height : 600px;
width: 200px;
margin-left: 50px;
}
JavaScript
var $divs = $('#div1, #div2');
var sync = function(e){
var $other = $divs.not(this).off('scroll'), other = $other.get(0);
var percentage = this.scrollTop / (this.scrollHeight - this.offsetHeight);
other.scrollTop = percentage * (other.scrollHeight - other.offsetHeight);
setTimeout( function(){ $other.on('scroll', sync ); },50);
}
$divs.on( 'scroll', sync);