There are 2 divas:
- one wide
0% - another in height
2000+ px
You need to synchronize them, as you scroll the second diva
$(window).scroll(function () { if (window.pageYOffset >= $('.article').offset().top) { } }) There is a check for the entry, as I continue to synchronize the percentage of the width of the first diva with the height and the current scrolling of the second