Platform
VaultVault
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
ButtonsPart of ProButtons
IconsPart of ProIcons
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
SavedPart of ProSaved
Support
DocumentationDocumentation
MCP serverMCP server
SettingsSettings
VaultSliders & marqueesCurtain Wipe Slider
CRT Glitch HoverBrowse all 182Curved Fill Link List
  • Free15
  • Navigation19
  • Buttons9
  • Scroll55
  • Text27
  • Sliders & marquees19
  • Gallery & images67
  • Cursor24
  • Page transitions10
  • Loaders2
  • Backgrounds10
  • UI components33
  • Interface Essentials144
  • Social Icons69
  • Payment Badges41
Sign inSign in

Start free. The code for 15 components, no card needed.

Get 15 free

Curtain Wipe Slider

This one is locked. Become a member to open the code for it and the rest of the Vault.

See plansTry the 15 free ones

What you'll need.

Install

  • gsap
  • CustomEase

Setup

npm i gsapregisterPlugin(CustomEase)

More like this

  • Hero
  • Carousel
  • Progress
  • Wipe
  • Stagger
  • Split text

Features.

  • Full-screen image slider: the old image is cut into columns that wipe away one after another, like a curtain drawn across
  • The curtain draws left to right going forward and right to left going back
  • The new image settles from a zoom and a soft shade underneath while the columns dim as they go
  • The title rolls out and in letter by letter; the index digits, and a small label if you add one, roll with it
  • A hairline across the top fills as you move through the slides
  • Arrow buttons, drag or swipe (15% of the width) and ← / →; wraps round at both ends
  • Quick clicks never pop: a new curtain goes under the one still clearing, and each runs out on its own. Clicks closer than 150ms apart are ignored
  • Waits for the next image to load and decode before it wipes (1.5s at most)
  • Screen readers hear "Slide 2 of 4: Turning" on every change
  • Below 768px the title shrinks and lifts above the arrows, and the index hides
  • Respects prefers-reduced-motion: an instant swap with no curtain, zoom or rolls
  • GSAP and CustomEase only

How to get it right.

Use landscape images

Every slide fills the whole slider and crops to it. Landscape pictures (16:10 or wider) crop least on desktop; keep the subject central for phones.

Keep titles short

The title is big (7.2em) and never wraps. One or two words per slide reads best and fits on a phone.

The label is optional

Slides ship with a title only. To add a small label top left, put data-cts-label="Room 01" on a slide; it rolls with the title.

Match the columns to the picture

12 columns reads as a curtain. Fewer (4–6) feels like heavy panels; more (20+) turns into a fine blind. Very wide screens can take more.

Give it focus for the keys

← and → only work while the slider has focus. It's focusable (tabindex="0"); clicking it or tabbing to it is enough. Up, down and any key with a modifier stay with the browser.

Variations.

  • Default — 12 columns over 0.8s on the house curve, image settling from 1.3
  • Panels — data-au-columns="5" and data-au-duration="1.4"
  • Blind — data-au-columns="24" and data-au-duration="0.6"
  • Flat — data-au-zoom="1": the new image appears at rest under the curtain
  • Your colours — override the --cts-* variables on the slider

Where it fits.

  • Architecture and interiors — a house or building, room by room
  • Portfolio hero — four to six projects, one full screen each
  • Product launch — one big picture per angle or colourway
  • Editorial openers — chapters of a story, each with a one-word title

Frequently asked.

Two or more. Add one <li data-cts-slide> per slide with its title, image and alt text. The index shows two digits, so up to 99.

The plate's <img> shows the first slide before the script runs (and if it never does). Keep it matching the first data-cts-slide.

No. Slides change on arrows, swipe or keys only.

Yes. It fills the screen by default (100svh); set height on .cts_slider to anything else. The curtain is measured from the slider's width on every change.

No. Load gsap and CustomEase before the script.

Related components.

NewPro

Ink Bloom Slider

Click

Pro

Rotating Ring Timeline

Drag

Pro

Ruler Card Carousel

Drag