Reveal

Clip-path reveal — the element is hidden behind a mask that opens in the requested direction when it scrolls into view. Good for images and section reveals.

From left
From bottom
From right

Usage

import { Reveal } from '@bwo-ui/react';

<Reveal direction="bottom" duration={1.0}>
  <img src="..." />
</Reveal>

Props

PropTypeDefaultDescription
direction'left' | 'right' | 'top' | 'bottom''bottom'Side the content emerges from.
durationnumber1.0Seconds.
easestring'expo.out'GSAP ease.
startstring'top 85%'ScrollTrigger start.
oncebooleantruePlay only once.
delaynumber0Pre-tween delay.