Skip to content

J2: reveal and scroll progress hooks that respect reduced motion #226

Closed

Description

@wab

Parent

#212 (PRD: website redesign v2, delivery steps J1 to J6)

What to build

Two motion hooks for the redesigned pages.

  • useInView reveals an element when it appears.
  • A scroll progress hook, built on framer-motion, which is already installed.
  • Both do nothing under prefers-reduced-motion.
  • Content is visible without JavaScript. The server render shows the final state.
  • Reveals use the J1 easing token.

Acceptance criteria

  • Unit test: under reduced motion, each hook returns the final state at once.
  • A server render of a revealed element shows it visible.
  • A demo of both hooks has its own section on /design-system.

Blocked by

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentFully specified, AFK-ready for an agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions