Skip to content

J6: animation cleanup after the J5 pages #317

Open

Description

@wab

Parent

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

Context

The animation code has two engines and duplicated keyframes:

  • framer-motion runs in 6 files: ClientCarousel.tsx, ToolCarousel.tsx, ui/Carousel.tsx, ui/ScrollProgressBar.tsx, hooks/use-scroll-progress.ts, design-system/motion-section.tsx.
  • Everything else uses the Panda keyframes in preset/keyframes.ts and the J2 hooks from J2: reveal and scroll progress hooks that respect reduced motion #226 (J2: reveal and scroll progress hooks that respect reduced motion).
  • hero-reveal has the same frames as fade-in-up-small. radar-sweep has the same frames as spin-slow.
  • home/dashboard-illustration.tsx sets animationDelay in inline styles, outside the token system.

Most keyframes serve the v1 illustrations that the J5 pages replace. Cleaning them before J5 would edit files that are about to be deleted.

What to build

  • Delete every keyframe no file uses once the J5 pages are live.
  • Merge the duplicated keyframes that remain.
  • Move inline animation delays into Panda styles.
  • Decide whether framer-motion stays. If the carousels and the scroll progress can run on the J2 hooks, remove the dependency. Coordinate with Deps: upgrade the UI and content library majors #288 (Deps: upgrade the UI and content library majors).

Acceptance criteria

  • Every keyframe in preset/keyframes.ts is used at least once.
  • No two keyframes have the same frames.
  • No inline animation or animationDelay style is left in app/.
  • The PR states the framer-motion decision; if removed, package.json no longer lists it.
  • pnpm typecheck, pnpm check and pnpm test:run pass.

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