Hover State Layer
Also called Hover State, State layer, Hover overlay
A translucent overlay tints the element to show the pointer is over it.
Use for
Design system components
Variants
- Hover
- Focus
- Pressed
- Dragged
- Selected
- Activated
Also called Hover State, State layer, Hover overlay
A translucent overlay tints the element to show the pointer is over it.
Design system components
Replace [where] with the part of your page and paste the prompt into your AI agent. Each prompt includes the name of the motion, so next time you can simply ask for it by name.
Add a "Hover State Layer" (also called hover state, state layer or hover overlay) to [where].
A faint translucent overlay in the content color should fade in quickly over the element while the pointer is over it, and fade out when it leaves.
Keep it faint so contrast stays intact, and use the same layer approach for focus and pressed states.