GradientText

Animated gradient text fill. Applies background-clip: text with a wide gradient that scrolls on a loop.

Liquid hotNorthern lights

Usage

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

<GradientText
  as="h1"
  gradient="linear-gradient(90deg, #ff481f, #ff9d00, #ff481f)"
  duration={5}
>
  Liquid hot
</GradientText>

Props

PropTypeDefaultDescription
gradientstringAny CSS gradient (no `background-image:` prefix).
durationnumber6Cycle duration in seconds.
anglenumber90Gradient angle (when using default gradient).
sizenumber300Background size as %.
direction'left' | 'right''right'Direction the gradient flows.
animatebooleantrueSet false to hold the gradient still.