gentleface

Gentleface › Transportation › anchor

anchor icon

Anchor: anchor, harbor, marina, anchorage. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated anchor-swing · line-round

The anchor swings from the top of its ring like a pendulum, every swing taking the same time and each one smaller than the last.

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.25 s to 2.8 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="M9.5 7C9.641 7 9.759 7.048 9.856 7.144C9.952 7.241 10 7.359 10 7.5C10 7.641 9.952 7.759 9.856 7.856C9.759 7.952 9.641 8 9.5 8L8 8L8 13.978C8.522 13.931 9.031 13.809 9.525 13.614C10.231 13.334 10.852 12.926 11.389 12.389C11.926 11.852 12.334 11.231 12.614 10.525C12.809 10.031 12.931 9.522 12.978 9L12.5 9C12.359 9 12.241 8.952 12.144 8.856C12.048 8.759 12 8.641 12 8.5C12 8.359 12.048 8.241 12.144 8.144C12.241 8.048 12.359 8 12.5 8L13.5 8C13.641 8 13.759 8.048 13.856 8.144C13.952 8.241 14 8.359 14 8.5C14 9.327 13.848 10.124 13.544 10.893C13.213 11.727 12.731 12.462 12.096 13.096C11.462 13.731 10.727 14.213 9.893 14.544C9.124 14.848 8.327 15 7.5 15C6.673 15 5.876 14.848 5.107 14.544C4.273 14.213 3.538 13.731 2.904 13.096C2.269 12.462 1.787 11.727 1.456 10.893C1.152 10.124 1 9.327 1 8.5C1 8.359 1.048 8.241 1.144 8.144C1.241 8.048 1.359 8 1.5 8L2.5 8C2.641 8 2.759 8.048 2.856 8.144C2.952 8.241 3 8.359 3 8.5C3 8.641 2.952 8.759 2.856 8.856C2.759 8.952 2.641 9 2.5 9L2.022 9C2.069 9.522 2.191 10.031 2.386 10.525C2.666 11.231 3.074 11.852 3.611 12.389C4.148 12.926 4.769 13.334 5.475 13.614C5.969 13.809 6.478 13.931 7 13.978L7 8L5.5 8C5.359 8 5.241 7.952 5.144 7.856C5.048 7.759 5 7.641 5 7.5C5 7.359 5.048 7.241 5.144 7.144C5.241 7.048 5.359 7 5.5 7L7 7L7 5.95C6.857 5.921 6.717 5.879 6.58 5.824C6.259 5.697 5.976 5.512 5.732 5.268C5.488 5.024 5.303 4.741 5.176 4.42C5.059 4.125 5 3.818 5 3.5C5 3.182 5.059 2.875 5.176 2.58C5.303 2.259 5.488 1.976 5.732 1.732C5.976 1.488 6.259 1.303 6.58 1.176C6.875 1.059 7.182 1 7.5 1C7.818 1 8.125 1.059 8.42 1.176C8.741 1.303 9.024 1.488 9.268 1.732C9.512 1.976 9.697 2.259 9.824 2.58C9.941 2.875 10 3.182 10 3.5C10 3.818 9.941 4.125 9.824 4.42C9.697 4.741 9.512 5.024 9.268 5.268C9.024 5.512 8.741 5.697 8.42 5.824C8.283 5.879 8.142 5.921 8 5.95L8 7L9.5 7ZM6.105 4.052C6.182 4.245 6.293 4.414 6.439 4.561C6.586 4.707 6.755 4.818 6.948 4.895C7.125 4.965 7.309 5 7.5 5C7.691 5 7.875 4.965 8.052 4.895C8.245 4.818 8.414 4.707 8.561 4.561C8.707 4.414 8.818 4.245 8.895 4.052C8.965 3.875 9 3.691 9 3.5C9 3.309 8.965 3.125 8.895 2.948C8.818 2.755 8.707 2.586 8.561 2.439C8.414 2.293 8.245 2.182 8.052 2.105C7.875 2.035 7.691 2 7.5 2C7.309 2 7.125 2.035 6.948 2.105C6.755 2.182 6.586 2.293 6.439 2.439C6.293 2.586 6.182 2.755 6.105 2.948C6.035 3.125 6 3.309 6 3.5C6 3.691 6.035 3.875 6.105 4.052Z"/></svg>
React
// Gentleface "anchor" (line-round), MIT. https://gentleface.com/icons/anchor
import type { SVGProps } from 'react';

export function AnchorIcon(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="M9.5 7C9.641 7 9.759 7.048 9.856 7.144C9.952 7.241 10 7.359 10 7.5C10 7.641 9.952 7.759 9.856 7.856C9.759 7.952 9.641 8 9.5 8L8 8L8 13.978C8.522 13.931 9.031 13.809 9.525 13.614C10.231 13.334 10.852 12.926 11.389 12.389C11.926 11.852 12.334 11.231 12.614 10.525C12.809 10.031 12.931 9.522 12.978 9L12.5 9C12.359 9 12.241 8.952 12.144 8.856C12.048 8.759 12 8.641 12 8.5C12 8.359 12.048 8.241 12.144 8.144C12.241 8.048 12.359 8 12.5 8L13.5 8C13.641 8 13.759 8.048 13.856 8.144C13.952 8.241 14 8.359 14 8.5C14 9.327 13.848 10.124 13.544 10.893C13.213 11.727 12.731 12.462 12.096 13.096C11.462 13.731 10.727 14.213 9.893 14.544C9.124 14.848 8.327 15 7.5 15C6.673 15 5.876 14.848 5.107 14.544C4.273 14.213 3.538 13.731 2.904 13.096C2.269 12.462 1.787 11.727 1.456 10.893C1.152 10.124 1 9.327 1 8.5C1 8.359 1.048 8.241 1.144 8.144C1.241 8.048 1.359 8 1.5 8L2.5 8C2.641 8 2.759 8.048 2.856 8.144C2.952 8.241 3 8.359 3 8.5C3 8.641 2.952 8.759 2.856 8.856C2.759 8.952 2.641 9 2.5 9L2.022 9C2.069 9.522 2.191 10.031 2.386 10.525C2.666 11.231 3.074 11.852 3.611 12.389C4.148 12.926 4.769 13.334 5.475 13.614C5.969 13.809 6.478 13.931 7 13.978L7 8L5.5 8C5.359 8 5.241 7.952 5.144 7.856C5.048 7.759 5 7.641 5 7.5C5 7.359 5.048 7.241 5.144 7.144C5.241 7.048 5.359 7 5.5 7L7 7L7 5.95C6.857 5.921 6.717 5.879 6.58 5.824C6.259 5.697 5.976 5.512 5.732 5.268C5.488 5.024 5.303 4.741 5.176 4.42C5.059 4.125 5 3.818 5 3.5C5 3.182 5.059 2.875 5.176 2.58C5.303 2.259 5.488 1.976 5.732 1.732C5.976 1.488 6.259 1.303 6.58 1.176C6.875 1.059 7.182 1 7.5 1C7.818 1 8.125 1.059 8.42 1.176C8.741 1.303 9.024 1.488 9.268 1.732C9.512 1.976 9.697 2.259 9.824 2.58C9.941 2.875 10 3.182 10 3.5C10 3.818 9.941 4.125 9.824 4.42C9.697 4.741 9.512 5.024 9.268 5.268C9.024 5.512 8.741 5.697 8.42 5.824C8.283 5.879 8.142 5.921 8 5.95L8 7L9.5 7ZM6.105 4.052C6.182 4.245 6.293 4.414 6.439 4.561C6.586 4.707 6.755 4.818 6.948 4.895C7.125 4.965 7.309 5 7.5 5C7.691 5 7.875 4.965 8.052 4.895C8.245 4.818 8.414 4.707 8.561 4.561C8.707 4.414 8.818 4.245 8.895 4.052C8.965 3.875 9 3.691 9 3.5C9 3.309 8.965 3.125 8.895 2.948C8.818 2.755 8.707 2.586 8.561 2.439C8.414 2.293 8.245 2.182 8.052 2.105C7.875 2.035 7.691 2 7.5 2C7.309 2 7.125 2.035 6.948 2.105C6.755 2.182 6.586 2.293 6.439 2.439C6.293 2.586 6.182 2.755 6.105 2.948C6.035 3.125 6 3.309 6 3.5C6 3.691 6.035 3.875 6.105 4.052Z" />
    </svg>
  );
}
Vue
Vue: see /icons/anchor.md
Svelte
Svelte: see /icons/anchor.md
HTML img
HTML img: see /icons/anchor.md
CSS
CSS: see /icons/anchor.md
Data URL
Data URL: see /icons/anchor.md
Sprite
Sprite: see /icons/anchor.md
SwiftUI
SwiftUI: see /icons/anchor.md
Compose
Compose: see /icons/anchor.md
Android XML
Android XML: see /icons/anchor.md
Flutter
Flutter: see /icons/anchor.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 { AnchorIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
anchor, harbor, marina, anchorage, harbour, mooring
Alternatives
  • link: an anchor link inside a web page
  • ship: a ship, boat or ferry
  • sailboat: sailing or a yacht
Also fits
  • ship: a harbor or marina
Tags
anchor, harbor, port, marina, dock, nautical, sea, maritime
Category
Transportation
Component name
AnchorIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

More transportation icons

For agents

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