Atelier UI®

Read the docsGithub
Docs 1.0.0

Getting started

  • Browse Catalog
  • Installation
  • How to contribute
  • Code of conduct
  • Fluid Scene

Components (32)

  • Clip Reveal
  • Stripe Wipe
  • Sweep Exit
  • Dither Flow
    pro
  • Glowing Fog
    pro
  • Halftone Glow
    pro
  • Sphere Gallery
  • Fluid Distortion
  • Image Trail
  • Lens Media
  • Liquid Media
  • Magnetic Dot Grid
  • Pixel Media
  • Pixel Trail
  • Pixelated Text
  • Text Bounce
  • Text Fluid
  • Text Roll
  • Text Scramble
  • Curve Media
  • Elastic Stick
    pro
  • Infinite Gallery
  • Infinite Parallax
  • Infinite Zoom
  • Pixel Scroll
  • Scattered Scroll
  • Text Split
  • WebGL Image
  • WebGL Provider
  • WebGL Scene
  • WebGL Text
  • WebGL Video
Atelier UI 1.0.0 ©2026
Star on githubBuy me a coffeellms.txt
  1. Docs
  2. /
  3. Components
  4. /
  5. Elastic Stick

Elastic Stick

Items that bounce and stick to the center while scrolling.

Motion
Lenis
Tailwind CSS
https://atelier-ui.com/elastic-stick
Unlock Code
Unlock component

Unlock the source code and CLI installation with a one-time license.

Get pro accessSign in
One-time payment. Lifetime access to all current and future pro components.

Usage

Point scrollTargetRef at a tall scroll container with a sticky inner wrapper; the items bounce and stick to the center as that container scrolls through the viewport.

const scrollTargetRef = useRef<HTMLDivElement>(null)

<div ref={scrollTargetRef} className="relative h-[300vh]">
  <div className="sticky top-0 flex h-screen items-center justify-center gap-2">
    <ElasticStick scrollTargetRef={scrollTargetRef}>
      {images.map((src) => (
        <img key={src} src={src} alt="" className="aspect-[5/7] w-[30vw] object-cover" />
      ))}
    </ElasticStick>
  </div>
</div>

API

PropTypeDefaultDescription
childrenReactNode—The items to animate. Any JSX element allowed.
staggerValuenumber0.03Time offset between each child's animation start.
scrollTargetRefRefObject<HTMLElement | null>undefinedReference to the scroll target element.
  • Install
  • Usage
  • API
Star on githubBuy me a coffeellms.txt