Using skrollr.js, I am implementing transition effects on an inner div nested inside another div. The inner div is positioned relatively.
Here are my codes:
HTML Structure
<div class="outer">
<div class="inner-div" style="transition:transform .3s ease;" data-top="transform:translateY(0px)" data--80p-top="transform:translateY(300px)">
<h1>some thing</h1>
</div>
</div>
The issue I'm facing is that when scrolling, the h1
element shivers vertically. Any suggestions for a solution?