User avatar

Flexy Content Overflow PRO

Sticky scroll

Unlock Playgrounds

Build, test and share frontend ideas right in your browser.

Choose a plan

Cancel anytime. Playgrounds are also included in PRO. Upgrade later and we credit 100% of your first 3 months and 50% of the rest toward it.

Already a member? Log in

Playground settings

Playground

Anyone with the link can view it. Private playgrounds are only visible to you.

Editor

Applied right away

Files in the same folder share one tab.

Packages

Importable from your code, loaded from esm.sh

export const App = () => {
return (
// Elementerne er sticky indtil de har scrolled
// igennem hele deres parent
<div className="grid min-h-dvh place-items-center text-white">
<div className="flex gap-12 justify-between w-full p-8">
<div className="sticky top-0 h-fit flex flex-col gap-4">
<p className="font-extrabold text-3xl">Ready made solutions for creators</p>
<p className="max-w-xs text-gray-300">So you can focus on your content and audience</p>
</div>
<div className="flex flex-col gap-8">
<div className="sticky top-0 w-60 h-60 border"></div>
<div className="sticky top-0 w-60 h-60 border"></div>
<div className="sticky top-0 w-60 h-60 border"></div>
<div className="sticky top-0 w-60 h-60 border"></div>
<div className="sticky top-0 w-60 h-60 border"></div>
</div>
</div>
<div className="w-full h-[100vh] border"></div>
</div>
);
}
  • No matching files
↵ open⌘↵ open to the sideesc close