Train Front icon
A hand-drawn train front icon that animates on its own: an SVG on a 24px grid in thin, regular and bold strokes. Free to download and use in the apps you build (LumioUI License). It takes your text colour through currentColor.
- Category
- Travel
- Grid
- 24 × 24
- Strokes
- 1.5 · 2 · 2.5
- Name
train-front
Stroke weights and sizes
Use it in React Native
Paste the SVG into react-native-svg's SvgXml. The Icon component covers a curated set by name, and Animated Icons plays the motion natively.
TSX TrainFrontIcon.tsx
import { SvgXml } from "react-native-svg";
const TrainFrontIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g transform="translate(-1 0)"><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M6.4 3.6L17.6 3.6C19 3.6 20.2 4.8 20.2 6.2L20.2 14.6C20.2 16.6 18.6 18.2 16.6 18.2L9.4 18.2C7.4 18.2 5.8 16.6 5.8 14.6L5.8 6.2C5.8 4.8 6 3.6 6.4 3.6Z"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M5.8 10.4L18.2 10.4"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M9.4 6.8L14.6 6.8"></path><path stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M8.2 14.8L8.6 14.8M15.4 14.8L15.8 14.8"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M8.6 18.2L7 21M15.4 18.2L17 21"></path></g></svg>`;
<SvgXml xml={TrainFrontIcon} width={24} height={24} color="#111" /> SVG code
The still glyph. The animated version, linked above, plays its motion on its own with SMIL, so it needs no script.
SVG train-front.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g transform="translate(-1 0)"><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M6.4 3.6L17.6 3.6C19 3.6 20.2 4.8 20.2 6.2L20.2 14.6C20.2 16.6 18.6 18.2 16.6 18.2L9.4 18.2C7.4 18.2 5.8 16.6 5.8 14.6L5.8 6.2C5.8 4.8 6 3.6 6.4 3.6Z"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M5.8 10.4L18.2 10.4"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M9.4 6.8L14.6 6.8"></path><path stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M8.2 14.8L8.6 14.8M15.4 14.8L15.8 14.8"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M8.6 18.2L7 21M15.4 18.2L17 21"></path></g></svg> On the web, link it straight from the CDN:
HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/train-front.svg" width="24" height="24" alt="Train Front" />