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 & marqueesSlanted Wipe Slider
Velocity Skew TextBrowse all 182Masked Slide-Up Reveal
  • 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

Slanted 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
  • SplitText

Setup

npm i gsapregisterPlugin(SplitText)

More like this

  • Hero
  • Carousel
  • Progress
  • Wipe
  • Split text

Features.

  • A full-height hero slider: one big image, a huge title top left, a control pill and progress bars at the bottom
  • Each change takes 0.8s on the house curve: it wipes the next image open from the side you're heading towards, on a slanted edge whose top runs ahead, while the image eases in from 1.2× to 1
  • Title letters roll out and in one after another; the word in the pill rolls over with it, and the pill eases to the new word's width with a little overshoot
  • Every bar up to the current slide fills (or drains going back)
  • Arrows in the pill, the outer quarter of the stage on each side, a 40px swipe and ←/→ all change slide; it loops past either end
  • Rapid presses stack wipes on top of each other without a flash; presses closer than 150ms apart are ignored
  • Waits for the next image to load and decode before it wipes (1.5s at most)
  • Speed, edge slant and zoom are options
  • Respects prefers-reduced-motion: an instant swap with no wipe, rolls or fills
  • GSAP with SplitText

How to get it right.

Use big landscape images

Every image covers the whole stage, so it's cropped to the screen: wide on a laptop, a tall middle slice on a phone. Keep the subject near the centre and export around 1600px wide.

Keep titles to one short word

The title is set at 9.9em (about 158px at a 16px font size, 3.75em at 767px and below) and never wraps. The same word sits in the pill between the arrows, so a long one stretches the pill too.

Give each slide one short line

The text inside a slide isn't shown; it's read out to screen readers with the title on each change.

Want text over the image?

A label, description and percentage row is built in but not in the markup. Add this inside the stage and the script fills it:

example.html
<div class="wps_info" data-wps-info aria-hidden="true">
  <div class="wps_label" data-wps-caption></div>
  <div class="wps_desc-slot" data-wps-desc-slot><p class="wps_desc" data-wps-desc></p></div>
  <div class="wps_count" data-wps-count></div>
</div>

The label comes from data-wps-label on a slide. Darken the images with --wps-scrim if the text is hard to read.

Three to six slides

Each slide gets one progress bar. Past about six the bars get short.

Variations.

  • Default — 0.8s base time, edge slant 0.35, zoom from 1.2
  • Straight edge — data-au-lead="0": a plain vertical wipe
  • Steep edge — data-au-lead="0.8"
  • Flat wipe, no zoom — data-au-zoom="1"
  • Slow and calm — data-au-duration="1.4": every time in the change scales with it
  • Your colours — override the --wps-* variables; --wps-margin moves the title and bars in from the edges

Where it fits.

  • Homepage heroes — a handful of campaign images with a word each
  • Collections and seasons — one slide per drop, chapter or season
  • Portfolio intros — a project's best four frames before the case study
  • Event and travel pages — places or days, each with a short line

Frequently asked.

No, there's no autoplay. Call .click() on the next [data-wps-step="1"] button from your own timer if you want one.

At 767px and below the title drops to 3.75em, the margins halve and the bars sit closer together. Swiping left or right changes slide; vertical scrolling still works.

Yes. Tab to the slider and use ← and →, or Tab on to the two arrow buttons. Each change is announced to screen readers with the slide number, title and description, and the image's data-wps-alt is its accessible name.

Yes. Every slider runs on its own.

Yes: gsap and SplitText, loaded before the script.

Related components.

NewPro

Ink Bloom Slider

Click

Pro

Rotating Ring Timeline

Drag

Pro

Ruler Card Carousel

Drag