gentleface

Gentleface › Transportation › train-track

train-track icon

Train track: train track, rail line, railway line, railroad track. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated train-track-lay · line-round

The rails are pulled up along their length and the sleepers are lifted away. Then the track is laid again: the sleepers drop in one by one from the near end, and the two rails run out along them.

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.5 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.707 3L12 5.293L13.146 4.146C13.246 4.047 13.364 3.997 13.5 3.997C13.636 3.997 13.754 4.047 13.854 4.146C13.951 4.244 14 4.362 14 4.5C14 4.638 13.951 4.756 13.854 4.854L12.707 6L12.854 6.146C12.951 6.244 13 6.362 13 6.5C13 6.638 12.951 6.756 12.854 6.854C12.754 6.953 12.636 7.003 12.5 7.003C12.364 7.003 12.246 6.953 12.146 6.854L12 6.707L10.707 8L10.854 8.146C10.953 8.246 11.003 8.364 11.003 8.5C11.003 8.636 10.953 8.754 10.854 8.854C10.754 8.953 10.636 9.003 10.5 9.003C10.364 9.003 10.246 8.953 10.146 8.854L10 8.707L8.707 10L8.854 10.146C8.953 10.246 9.003 10.364 9.003 10.5C9.003 10.636 8.953 10.754 8.854 10.854C8.754 10.953 8.636 11.003 8.5 11.003C8.364 11.003 8.246 10.953 8.146 10.854L8 10.707L6.707 12L6.854 12.146C6.953 12.246 7.003 12.364 7.003 12.5C7.003 12.636 6.953 12.754 6.854 12.854C6.756 12.951 6.638 13 6.5 13C6.362 13 6.244 12.951 6.146 12.854L6 12.707L4.854 13.854C4.756 13.951 4.638 14 4.5 14C4.362 14 4.244 13.951 4.146 13.854C4.047 13.754 3.997 13.636 3.997 13.5C3.997 13.364 4.047 13.246 4.146 13.146L5.293 12L3 9.707L1.854 10.854C1.756 10.951 1.638 11 1.5 11C1.362 11 1.244 10.951 1.146 10.854C1.047 10.754 0.997 10.636 0.997 10.5C0.997 10.364 1.047 10.246 1.146 10.146L2.293 9L2.146 8.854C2.047 8.754 1.997 8.636 1.997 8.5C1.997 8.364 2.047 8.246 2.146 8.146C2.244 8.049 2.362 8 2.5 8C2.638 8 2.756 8.049 2.854 8.146L3 8.293L4.293 7L4.146 6.854C4.047 6.754 3.997 6.636 3.997 6.5C3.997 6.364 4.047 6.246 4.146 6.146C4.246 6.047 4.364 5.997 4.5 5.997C4.636 5.997 4.754 6.047 4.854 6.146L5 6.293L6.293 5L6.146 4.854C6.047 4.754 5.997 4.636 5.997 4.5C5.997 4.364 6.047 4.246 6.146 4.146C6.246 4.047 6.364 3.997 6.5 3.997C6.636 3.997 6.754 4.047 6.854 4.146L7 4.293L8.293 3L8.146 2.854C8.049 2.756 8 2.638 8 2.5C8 2.362 8.049 2.244 8.146 2.146C8.246 2.047 8.364 1.997 8.5 1.997C8.636 1.997 8.754 2.047 8.854 2.146L9 2.293L10.146 1.146C10.246 1.047 10.364 0.997 10.5 0.997C10.636 0.997 10.754 1.047 10.854 1.146C10.951 1.244 11 1.362 11 1.5C11 1.638 10.951 1.756 10.854 1.854L9.707 3ZM11.293 6L9 3.707L7.707 5L10 7.293L11.293 6ZM5.707 7L8 9.293L9.293 8L7 5.707L5.707 7ZM3.707 9L6 11.293L7.293 10L5 7.707L3.707 9Z"/></svg>
React
// Gentleface "train-track" (line-round), MIT. https://gentleface.com/icons/train-track
import type { SVGProps } from 'react';

export function TrainTrackIcon(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.707 3L12 5.293L13.146 4.146C13.246 4.047 13.364 3.997 13.5 3.997C13.636 3.997 13.754 4.047 13.854 4.146C13.951 4.244 14 4.362 14 4.5C14 4.638 13.951 4.756 13.854 4.854L12.707 6L12.854 6.146C12.951 6.244 13 6.362 13 6.5C13 6.638 12.951 6.756 12.854 6.854C12.754 6.953 12.636 7.003 12.5 7.003C12.364 7.003 12.246 6.953 12.146 6.854L12 6.707L10.707 8L10.854 8.146C10.953 8.246 11.003 8.364 11.003 8.5C11.003 8.636 10.953 8.754 10.854 8.854C10.754 8.953 10.636 9.003 10.5 9.003C10.364 9.003 10.246 8.953 10.146 8.854L10 8.707L8.707 10L8.854 10.146C8.953 10.246 9.003 10.364 9.003 10.5C9.003 10.636 8.953 10.754 8.854 10.854C8.754 10.953 8.636 11.003 8.5 11.003C8.364 11.003 8.246 10.953 8.146 10.854L8 10.707L6.707 12L6.854 12.146C6.953 12.246 7.003 12.364 7.003 12.5C7.003 12.636 6.953 12.754 6.854 12.854C6.756 12.951 6.638 13 6.5 13C6.362 13 6.244 12.951 6.146 12.854L6 12.707L4.854 13.854C4.756 13.951 4.638 14 4.5 14C4.362 14 4.244 13.951 4.146 13.854C4.047 13.754 3.997 13.636 3.997 13.5C3.997 13.364 4.047 13.246 4.146 13.146L5.293 12L3 9.707L1.854 10.854C1.756 10.951 1.638 11 1.5 11C1.362 11 1.244 10.951 1.146 10.854C1.047 10.754 0.997 10.636 0.997 10.5C0.997 10.364 1.047 10.246 1.146 10.146L2.293 9L2.146 8.854C2.047 8.754 1.997 8.636 1.997 8.5C1.997 8.364 2.047 8.246 2.146 8.146C2.244 8.049 2.362 8 2.5 8C2.638 8 2.756 8.049 2.854 8.146L3 8.293L4.293 7L4.146 6.854C4.047 6.754 3.997 6.636 3.997 6.5C3.997 6.364 4.047 6.246 4.146 6.146C4.246 6.047 4.364 5.997 4.5 5.997C4.636 5.997 4.754 6.047 4.854 6.146L5 6.293L6.293 5L6.146 4.854C6.047 4.754 5.997 4.636 5.997 4.5C5.997 4.364 6.047 4.246 6.146 4.146C6.246 4.047 6.364 3.997 6.5 3.997C6.636 3.997 6.754 4.047 6.854 4.146L7 4.293L8.293 3L8.146 2.854C8.049 2.756 8 2.638 8 2.5C8 2.362 8.049 2.244 8.146 2.146C8.246 2.047 8.364 1.997 8.5 1.997C8.636 1.997 8.754 2.047 8.854 2.146L9 2.293L10.146 1.146C10.246 1.047 10.364 0.997 10.5 0.997C10.636 0.997 10.754 1.047 10.854 1.146C10.951 1.244 11 1.362 11 1.5C11 1.638 10.951 1.756 10.854 1.854L9.707 3ZM11.293 6L9 3.707L7.707 5L10 7.293L11.293 6ZM5.707 7L8 9.293L9.293 8L7 5.707L5.707 7ZM3.707 9L6 11.293L7.293 10L5 7.707L3.707 9Z" />
    </svg>
  );
}
Vue
Vue: see /icons/train-track.md
Svelte
Svelte: see /icons/train-track.md
HTML img
HTML img: see /icons/train-track.md
CSS
CSS: see /icons/train-track.md
Data URL
Data URL: see /icons/train-track.md
Sprite
Sprite: see /icons/train-track.md
SwiftUI
SwiftUI: see /icons/train-track.md
Compose
Compose: see /icons/train-track.md
Android XML
Android XML: see /icons/train-track.md
Flutter
Flutter: see /icons/train-track.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 { TrainTrackIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
train track, rail line, railway line, railroad track
Don’t confuse with
Also fits
  • road: a rail line
Not for
  • footprints (use footprints): rail tracks, not footprints
Tags
train-track, rail-line, railway, railroad, rails, track, sleepers, train, rail, tram-line
Category
Transportation
Component name
TrainTrackIcon
History
  • 20 px drawn, 24 px drawn, added, released in 0.4.0
Since
version 0.4.0

More transportation icons

For agents

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