GitHub

Animation

CSS animation wrapper with fade, slide, bounce, zoom, and continuous effects.

<rhx-animation>

Examples

Fade In

Faded in content

Slide In

Slide in from left
Slide in from right (200ms delay)
Slide in from below (400ms delay)

Bounce and Zoom

Bounce in
Zoom in

Continuous Animations

Pulse
Bounce

Paused Animation

Properties

Property Type Default Description
rhx-name string fadeIn Animation name: fadeIn, fadeInUp, slideInLeft, slideInRight, slideInUp, bounceIn, zoomIn, pulse, bounce, spin
rhx-duration int 300 Animation duration in milliseconds
rhx-delay int 0 Delay before animation starts in milliseconds
rhx-easing string ease CSS easing function
rhx-iterations string 1 Number of iterations or "infinite"
rhx-play bool true Whether the animation starts automatically

Accessibility

  • Respects prefers-reduced-motion: animations are disabled or minimized for users who prefer reduced motion.
  • Animations are decorative and do not convey essential information.
  • Continuous animations (rhx-iterations="infinite") should be used sparingly; consider providing a way to pause them.