JSFiddle - React, Tailwind, and code Playground

HTML

<!-- Linked to http://bugs.jquery.com/ticket/13341 -->
<div id="content">
    Abc 123
</div>
<div id="fixed">
    <div id="relative">
    <div class="block"></div>
    <div class="block"></div>
    <div class="block"></div>
    <div class="block"></div>
    </div>
    
</div>

CSS

#content { 
    height: 10000px; 
    background-color: #EFEFEF;
}

#fixed {
 position: fixed;
 overflow-y: scroll;
    right: 0;
    top: 0;
    left: 0;
    bottom: 0;
    

}

#relative {
 background-color: #FFF;
    position: relative;
    top: 0;
    margin: 30px auto 70px;
    width: 300px;
    height: 3000px;
    

}

.block {
 height: 50px;
    background-color: #CCC;
    border: solid 1px #FFF;
}
}

JavaScript

$('html,body').scrollTop( 3000 ).css( 'overflow', 'hidden' );
console.log( $('.block').last().offset().top );