Fade In Up

Rise + fade key elements in as the page loads, optionally staggered. Use for hero content and a small group of important elements. Honors prefers-reduced-motion. For long lists or off-screen content use scroll-reveal instead; never delay must-read content by more than a moment.

Nexu Updated 108k repo stars
motion-anything — Anything becomes motion, on your laptop. Editorial dark banner with light-mode app windows: the component-motion workbench and the launch-vide

File contents

fade-in-up

A clean rise + fade entrance, on load. Part of motion-anything; obeys MOTION-SPEC.md.

When to use it

  • Hero content and a few key elements appearing on first paint.

When NOT to use it (restraint)

  • Long lists / off-screen content — use scroll-reveal.
  • Don't delay must-read content by more than ~300ms; keep to ≤3 staggered elements.

How to apply

  1. Copy fade-in-up.css and fade-in-up.js and link them.
  2. Mark elements: <h1 data-fade>…</h1> (optional data-fade-delay="80"; auto-staggers otherwise).

Accessibility & performance

  • prefers-reduced-motion: shown immediately. Transform/opacity only.

nexu-io/motion-anything commit 3e5ccc1d52

Frequently asked questions

npx get-skill add nexu-io/fade-in-up