All components

Components · Layout

Card

A panel that groups content. With an action it becomes a button.

Try itChange the motion setting at the top to feel each personality.
Lesson 3
A plain card. It only groups content.

Use it

<Card>Lesson 3</Card>
<Card onClick={open}>Lesson 4</Card>

How it moves

WhenRoleWhat moves
A plain card is shownnoneNothing. A card does not animate by itself
A card with an action: pointer moves over or awayfeedbackBackground color changes
A card with an action: pressed down, releasedfeedbackScales to the role's scale and back

Rules:

Reduced motion: the feedback scale is 1, so the card does not move. The hover color still changes.

CSS variables used: --ss-motion-feedback-scale, --ss-motion-feedback-spring, --ss-motion-feedback-spring-duration, --ss-motion-feedback-duration, --ss-motion-feedback-easing.