index.htmlpageThe markup to copy, between the copy-from-here comments, on a demo page.
style.cssstyleThe styles: copy them into your CSS.
script.jsscriptThe behavior: load it after the markup.
index.html
The markup to copy, between the copy-from-here comments, on a demo page.
読み込み中…
Focus Icon
v1.0
A focus icon that draws itself on hover and locks onto its center when focused: the corners hunt in and a ring closes around a dot.
React + HTML
無料
こんな用途に
Camera autofocus buttons, focus modes and tap-to-focus controls in photo and video apps.
仕組み
Hover it and the corners draw in, then the center ring. Focus it and the corners hunt in once and settle, while the ring shrinks to a dot and a colored ring locks around it.