JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
<span>neongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrth neongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrth neongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrth neongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrth neongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi ng;iebewl gl; b ;n;wgn;i ;w gjs;ohnsrh;osnrth;osrnth;o rh sr;ohn rs;osrthneongowen goweng oiejneg oi...
CSS
div:first-child {
position: fixed;
}
JavaScript
function throttle(fn,timeout) {
var tid = 0;
return function() {
clearTimeout(tid);
var args = [].slice.call( arguments ),
ctx = this;
tid = setTimeout( function() {
fn.apply( ctx, args );
}, timeout );
};
}
$(window).on("scroll", throttle( function() {
$('div').eq(0).append('scroll happened');
}, 100));