Skip to content

Add hover-transform utility classes (grow/shrink/float/slide/sink) #487

Description

@jackgranatowski

Idea

A small set of simple, composable hover-triggered transform utility classes — e.g. grow, shrink, float (lift), sink (press), slide-left/right — as a distinct documented utility group, rather than one-off :hover styles baked into individual components.

Why

We have color-hover states on links/buttons and a decorative --sf-animation-float token, but no general-purpose "apply a hover transform to any element" utility group. This is cheap to build (mostly transform + transition combinations off existing motion tokens) and broadly useful across cards, images, icons, buttons.

Scope

  • Build on existing --sf-transition-* and --sf-animation-* tokens in core/motion.css rather than introducing a new duration/easing scale.
  • Must respect prefers-reduced-motion (already handled elsewhere in core/motion.css/core/accessibility.css — follow the same pattern).
  • Document in docs/macros.md / docs/llm-guide.md if shipped as PUBLIC.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions