Loading video...

Video Failed to Load

Go Home

๐Ÿ“ Solved by CSS Scroll-Driven Animations: hide a header when scrolling down, show it again when scrolling up By adding a long transition-delay to a CSS property under certain conditions (with a Style Query), you can persist its value Demo by Fabrizio Calderan

15,617 views โ€ข 1 year ago โ€ขvia X (Twitter)

0 Comments

No comments available

Comments from the original post will appear here

Related Videos

you can create a sticky navbar that morphs when you scroll with pure CSS, no JS or animation libraries required ๐š‘๐šŽ๐šŠ๐š๐šŽ๐š› { ๐šŒ๐š˜๐š—๐š๐šŠ๐š’๐š—๐šŽ๐š›-๐š๐šข๐š™๐šŽ: ๐šœ๐šŒ๐š›๐š˜๐š•๐š•-๐šœ๐š๐šŠ๐š๐šŽ; ๐š™๐š˜๐šœ๐š’๐š๐š’๐š˜๐š—: ๐šœ๐š๐š’๐šŒ๐š”๐šข; ๐š๐š˜๐š™: ๐Ÿถ; } @๐šŒ๐š˜๐š—๐š๐šŠ๐š’๐š—๐šŽ๐š› ๐šœ๐šŒ๐š›๐š˜๐š•๐š•-๐šœ๐š๐šŠ๐š๐šŽ(๐šœ๐š๐šž๐šŒ๐š”: ๐š๐š˜๐š™) { .๐š—๐šŠ๐šŸ-๐š‹๐šŠ๐š› { ๐š–๐šŠ๐šก-๐š ๐š’๐š๐š๐š‘: ๐Ÿป๐Ÿผ๐š›๐šŽ๐š–; ๐š‹๐š˜๐š›๐š๐šŽ๐š›-๐š›๐šŠ๐š๐š’๐šž๐šœ: ๐Ÿถ.๐Ÿฝ๐Ÿป๐š›๐šŽ๐š–; ๐š‹๐šŠ๐šŒ๐š”๐š๐š›๐š˜๐šž๐š—๐š: ๐š›๐š๐š‹(๐Ÿธ๐Ÿป๐Ÿป ๐Ÿธ๐Ÿป๐Ÿป ๐Ÿธ๐Ÿป๐Ÿป / ๐Ÿถ.๐Ÿฟ๐Ÿธ); } } the browser now knows when a sticky element is stuck, all triggered by one container query available only in chromium browsers only, no firefox or safari which is a shame

Manu Arora

107,661 views โ€ข 8 days ago