@renras
Posted
Try wrapping your nav
inside a div
and apply the positioning on that instead and add overflow: hidden
on the nav
;
<main style={{position: relative}}>
<div style={{position: absolute}}>
<nav style={{overflow: hidden}}></nav>
</div>
</main>
I successfully recreated the animation you're trying implement here in this codepen: https://codepen.io/renras/pen/XWVooXg