Combination-lock icon unlocks on hover

Hovering a 'Privacy' settings row makes the padlock's shackle spring open while the dial turns, then click locks it again.

By erem (@eremkaragoz) · View original post

Originally built with React. Members can get the prompt for React, SwiftUI, React Native or HTML/CSS. More micro-interactions in React →

Prompt

Create a settings row in React + CSS: a 280x56px pill (#f1f3f5, 14px radius) holding a 28px padlock icon drawn as inline SVG (shackle path + round body with a dial of 8 small ticks) and the label 'Privacy' (20px, 500 wei…

Free forever. Available for React, SwiftUI, React Native and HTML/CSS.

Build it with

Motion details

Timing
320ms, 400ms
Easing
cubic-bezier(0.34, 1.56, 0.64, 1), ease-out
Details
Reduced-motion fallback

Keyframes

Six frames from the clip, left to right. Agents get this sheet as a reference with the prompt.

Six keyframes from Combination-lock icon unlocks on hover

Questions

How do I build the combination-lock icon unlocks on hover in React?
Copy the Kites Motion prompt for this clip (free account) and paste it into Claude Code, Cursor or Codex, or send it there in one click. The prompt describes the layout, timing and interactions, and links a keyframe sheet so your agent can match the motion. It is written for React and can be rewritten for SwiftUI, React Native, HTML/CSS.
What are the motion details?
Timing: 320ms, 400ms. Easing: cubic-bezier(0.34, 1.56, 0.64, 1), ease-out. Details: Reduced-motion fallback.
Who designed this animation?
erem (@eremkaragoz) shared it on X. Kites Motion links back to the original post.

Similar animations

More micro-interactions →