gentleface

Gentleface › Photo & image › focus

focus icon

Focus: focus, autofocus, tap to focus, camera focus. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated focus-lock · line-round

The corner brackets close in on the ring, overshoot, hunt back and lock, as autofocus does, and the ring tightens with them. Then they release past the drawn frame and settle.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.3 s to 2.35 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M5.856 2.144C5.952 2.241 6 2.359 6 2.5C6 2.641 5.952 2.759 5.856 2.856C5.759 2.952 5.641 3 5.5 3L4 3C3.724 3 3.488 3.098 3.293 3.293C3.098 3.488 3 3.724 3 4L3 5.5C3 5.641 2.952 5.759 2.856 5.856C2.759 5.952 2.641 6 2.5 6C2.359 6 2.241 5.952 2.144 5.856C2.048 5.759 2 5.641 2 5.5L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L5.5 2C5.641 2 5.759 2.048 5.856 2.144ZM12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 5.5C14 5.641 13.952 5.759 13.856 5.856C13.759 5.952 13.641 6 13.5 6C13.359 6 13.241 5.952 13.144 5.856C13.048 5.759 13 5.641 13 5.5L13 4C13 3.724 12.902 3.488 12.707 3.293C12.512 3.098 12.276 3 12 3L10.5 3C10.359 3 10.241 2.952 10.144 2.856C10.048 2.759 10 2.641 10 2.5C10 2.359 10.048 2.241 10.144 2.144C10.241 2.048 10.359 2 10.5 2L12 2C12.254 2 12.5 2.047 12.736 2.14ZM5.879 5.879C6.172 5.586 6.511 5.363 6.896 5.211C7.25 5.07 7.619 5 8 5C8.381 5 8.75 5.07 9.104 5.211C9.489 5.363 9.828 5.586 10.121 5.879C10.414 6.172 10.637 6.511 10.789 6.896C10.93 7.25 11 7.619 11 8C11 8.381 10.93 8.75 10.789 9.104C10.637 9.489 10.414 9.828 10.121 10.121C9.828 10.414 9.489 10.637 9.104 10.789C8.75 10.93 8.381 11 8 11C7.619 11 7.25 10.93 6.896 10.789C6.511 10.637 6.172 10.414 5.879 10.121C5.586 9.828 5.363 9.489 5.211 9.104C5.07 8.75 5 8.381 5 8C5 7.619 5.07 7.25 5.211 6.896C5.363 6.511 5.586 6.172 5.879 5.879ZM6.586 9.414C6.781 9.609 7.007 9.758 7.264 9.86C7.5 9.953 7.746 10 8 10C8.254 10 8.5 9.953 8.736 9.86C8.993 9.758 9.219 9.609 9.414 9.414C9.609 9.219 9.758 8.993 9.86 8.736C9.953 8.5 10 8.254 10 8C10 7.746 9.953 7.5 9.86 7.264C9.758 7.007 9.609 6.781 9.414 6.586C9.219 6.391 8.993 6.242 8.736 6.14C8.5 6.047 8.254 6 8 6C7.746 6 7.5 6.047 7.264 6.14C7.007 6.242 6.781 6.391 6.586 6.586C6.391 6.781 6.242 7.007 6.14 7.264C6.047 7.5 6 7.746 6 8C6 8.254 6.047 8.5 6.14 8.736C6.242 8.993 6.391 9.219 6.586 9.414ZM3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 10.5C2 10.359 2.048 10.241 2.144 10.144C2.241 10.048 2.359 10 2.5 10C2.641 10 2.759 10.048 2.856 10.144C2.952 10.241 3 10.359 3 10.5L3 12C3 12.276 3.098 12.512 3.293 12.707C3.488 12.902 3.724 13 4 13L5.5 13C5.641 13 5.759 13.048 5.856 13.144C5.952 13.241 6 13.359 6 13.5C6 13.641 5.952 13.759 5.856 13.856C5.759 13.952 5.641 14 5.5 14L4 14C3.746 14 3.5 13.953 3.264 13.86ZM10.144 13.856C10.048 13.759 10 13.641 10 13.5C10 13.359 10.048 13.241 10.144 13.144C10.241 13.048 10.359 13 10.5 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 10.5C13 10.359 13.048 10.241 13.144 10.144C13.241 10.048 13.359 10 13.5 10C13.641 10 13.759 10.048 13.856 10.144C13.952 10.241 14 10.359 14 10.5L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L10.5 14C10.359 14 10.241 13.952 10.144 13.856Z"/></svg>
React
// Gentleface "focus" (line-round), MIT. https://gentleface.com/icons/focus
import type { SVGProps } from 'react';

export function FocusIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M5.856 2.144C5.952 2.241 6 2.359 6 2.5C6 2.641 5.952 2.759 5.856 2.856C5.759 2.952 5.641 3 5.5 3L4 3C3.724 3 3.488 3.098 3.293 3.293C3.098 3.488 3 3.724 3 4L3 5.5C3 5.641 2.952 5.759 2.856 5.856C2.759 5.952 2.641 6 2.5 6C2.359 6 2.241 5.952 2.144 5.856C2.048 5.759 2 5.641 2 5.5L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L5.5 2C5.641 2 5.759 2.048 5.856 2.144ZM12.736 2.14C12.993 2.242 13.219 2.391 13.414 2.586C13.609 2.781 13.758 3.007 13.86 3.264C13.953 3.5 14 3.746 14 4L14 5.5C14 5.641 13.952 5.759 13.856 5.856C13.759 5.952 13.641 6 13.5 6C13.359 6 13.241 5.952 13.144 5.856C13.048 5.759 13 5.641 13 5.5L13 4C13 3.724 12.902 3.488 12.707 3.293C12.512 3.098 12.276 3 12 3L10.5 3C10.359 3 10.241 2.952 10.144 2.856C10.048 2.759 10 2.641 10 2.5C10 2.359 10.048 2.241 10.144 2.144C10.241 2.048 10.359 2 10.5 2L12 2C12.254 2 12.5 2.047 12.736 2.14ZM5.879 5.879C6.172 5.586 6.511 5.363 6.896 5.211C7.25 5.07 7.619 5 8 5C8.381 5 8.75 5.07 9.104 5.211C9.489 5.363 9.828 5.586 10.121 5.879C10.414 6.172 10.637 6.511 10.789 6.896C10.93 7.25 11 7.619 11 8C11 8.381 10.93 8.75 10.789 9.104C10.637 9.489 10.414 9.828 10.121 10.121C9.828 10.414 9.489 10.637 9.104 10.789C8.75 10.93 8.381 11 8 11C7.619 11 7.25 10.93 6.896 10.789C6.511 10.637 6.172 10.414 5.879 10.121C5.586 9.828 5.363 9.489 5.211 9.104C5.07 8.75 5 8.381 5 8C5 7.619 5.07 7.25 5.211 6.896C5.363 6.511 5.586 6.172 5.879 5.879ZM6.586 9.414C6.781 9.609 7.007 9.758 7.264 9.86C7.5 9.953 7.746 10 8 10C8.254 10 8.5 9.953 8.736 9.86C8.993 9.758 9.219 9.609 9.414 9.414C9.609 9.219 9.758 8.993 9.86 8.736C9.953 8.5 10 8.254 10 8C10 7.746 9.953 7.5 9.86 7.264C9.758 7.007 9.609 6.781 9.414 6.586C9.219 6.391 8.993 6.242 8.736 6.14C8.5 6.047 8.254 6 8 6C7.746 6 7.5 6.047 7.264 6.14C7.007 6.242 6.781 6.391 6.586 6.586C6.391 6.781 6.242 7.007 6.14 7.264C6.047 7.5 6 7.746 6 8C6 8.254 6.047 8.5 6.14 8.736C6.242 8.993 6.391 9.219 6.586 9.414ZM3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 10.5C2 10.359 2.048 10.241 2.144 10.144C2.241 10.048 2.359 10 2.5 10C2.641 10 2.759 10.048 2.856 10.144C2.952 10.241 3 10.359 3 10.5L3 12C3 12.276 3.098 12.512 3.293 12.707C3.488 12.902 3.724 13 4 13L5.5 13C5.641 13 5.759 13.048 5.856 13.144C5.952 13.241 6 13.359 6 13.5C6 13.641 5.952 13.759 5.856 13.856C5.759 13.952 5.641 14 5.5 14L4 14C3.746 14 3.5 13.953 3.264 13.86ZM10.144 13.856C10.048 13.759 10 13.641 10 13.5C10 13.359 10.048 13.241 10.144 13.144C10.241 13.048 10.359 13 10.5 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 10.5C13 10.359 13.048 10.241 13.144 10.144C13.241 10.048 13.359 10 13.5 10C13.641 10 13.759 10.048 13.856 10.144C13.952 10.241 14 10.359 14 10.5L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L10.5 14C10.359 14 10.241 13.952 10.144 13.856Z" />
    </svg>
  );
}
Vue
Vue: see /icons/focus.md
Svelte
Svelte: see /icons/focus.md
HTML img
HTML img: see /icons/focus.md
CSS
CSS: see /icons/focus.md
Data URL
Data URL: see /icons/focus.md
Sprite
Sprite: see /icons/focus.md
SwiftUI
SwiftUI: see /icons/focus.md
Compose
Compose: see /icons/focus.md
Android XML
Android XML: see /icons/focus.md
Flutter
Flutter: see /icons/focus.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { FocusIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
focus, autofocus, tap to focus, camera focus, focus on content
Don’t confuse with
  • target: the target motif does not mean focus
  • scan: the bare corner frame means scan (scan); focus adds the centre mark
Also fits
  • crosshair: camera focus or focus mode
Not for
  • scan (use scan): camera focus (focus); scan is the bare corner frame
Tags
focus, autofocus, viewfinder, frame, corners, center, af
Category
Photo & image
Component name
FocusIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

More photo & image icons

For agents

Metadata: /icons/focus.json · Markdown: /icons/focus.md · SVG: https://gentleface.com/svg/{style}/16/focus.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/focus.png