User avatar

Flexy Content Overflow PRO

Sticky scroll

Unlock Playground Access

Playgrounds let you build, test, and share frontend ideas instantly — right in your browser. Access is included in PRO. Just want Playgrounds? Pick a plan below.

Maker

€5,- / month

Unlimited Playgrounds access to build, experiment, and share without limits.

Join for €5 per month

Champion

€10,- / month

All the benefits of Maker, plus you help Frontend.fyi grow and get a Champion badge on your profile.

Join for €10 per month

Cancel anytime — no commitment.
Upgrade to PRO anytime and get a partial refund.We'll credit 100% of your first 3 months and 50% of the rest toward the PRO lifetime price.

Already a member? Login

Playground settings

Title

Description

Public

Editor settings


Packages

These packages can be imported in your JavaScript files.

Package name

Version

@

@

1234567891011121314151617181920212223
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>
  );
}
One sec — editor's thinking…