Tram icon
A hand-drawn tram 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
tram
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 TramIcon.tsx
import { SvgXml } from "react-native-svg";
const TramIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g transform="translate(0 0.75)"><g><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M12 5.7L12 4.2M10 4.2L12 2.4L14 4.2"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M5.4 15.4L5.4 7.9C5.4 6.7 6.4 5.8 7.5 5.8L16.5 5.8C17.6 5.8 18.6 6.7 18.6 7.9L18.6 15.4L5.4 15.4Z"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M6.6 9.5L17.4 9.5"></path><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="8.2" cy="16.9" r="1.3"></circle><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="15.8" cy="16.9" r="1.3"></circle><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M9.5 16.9L14.5 16.9"></path><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="4.4" y1="19.9" x2="19.6" y2="19.9"></line></g></g></svg>`;
<SvgXml xml={TramIcon} 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 tram.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g transform="translate(0 0.75)"><g><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M12 5.7L12 4.2M10 4.2L12 2.4L14 4.2"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M5.4 15.4L5.4 7.9C5.4 6.7 6.4 5.8 7.5 5.8L16.5 5.8C17.6 5.8 18.6 6.7 18.6 7.9L18.6 15.4L5.4 15.4Z"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M6.6 9.5L17.4 9.5"></path><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="8.2" cy="16.9" r="1.3"></circle><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="15.8" cy="16.9" r="1.3"></circle><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M9.5 16.9L14.5 16.9"></path><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="4.4" y1="19.9" x2="19.6" y2="19.9"></line></g></g></svg> On the web, link it straight from the CDN:
HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/tram.svg" width="24" height="24" alt="Tram" />