Animation

Blur Text

Reveals text by blurring each piece in from a coloured offset, through a half-blurred mid-step, into the steady state. Triggers on viewport entry. Dependency-free port — uses IntersectionObserver + Web Animations API.

Angular adaptation of an effect by David Haz / reactbits.dev.

Import

import { WrBlurText } from 'ngwr/blur-text';

Playground

Welcome to ngwr
<wr-blur-text
  text="Welcome to ngwr"
  animateBy="words"
  direction="top"
  [delay]="200"
  [stepDuration]="0.35"
/>

Customize

Animate By
Direction
Delay (ms)
200 ms
Step Duration (s)
0.35 s
Text

API

NameDescriptionTypeDefault
textrequiredText to animate.string— (required)
animateBySplit granularity.'chars' | 'words''words'
directionEntry direction: 'top' slides down into place, 'bottom' slides up.'top' | 'bottom''top'
delayPer-piece stagger in ms.number200
stepDurationDuration of each keyframe step in seconds (total = 2 × stepDuration).number0.35
easingCSS easing function.string'linear'
thresholdIntersectionObserver threshold (0..1).number0.1
rootMarginIntersectionObserver rootMargin.string'0px'
(animationComplete)Emitted once all pieces finish animating.EventEmitter<void>