3D Isometric Animated SVG Icon Pack (24 Icons + Animator CLI)
24 layered 3D isometric vector icons with pure-CSS keyframe layers and a zero-dependency Python batch animator & sprite compiler CLI.
Developers love crisp 3D isometric icons in architecture diagrams, SaaS hero grids, and observability dashboards, yet most teams end up shipping 50KB+ Lottie players or wrestling with flat 2D icons wrapped in broken CSS transforms. Pure-CSS animated SVGs solve the payload problem, but they break in subtle ways as soon as you embed more than one icon on a page.
Why this problem wastes time
Two failure modes trip up almost every DIY animated SVG setup:
- Global SVG
<defs>and@keyframescollisions. Inline SVGs live inside the same HTML document scope. Ifcloud-cube.svgandneural-core.svgboth define<linearGradient id="grad-top">or@keyframes kf-float, the second icon silently overwrites the first. Worse, if you conditionally unmount the first icon in React or Vue, the remaining icon loses its gradient fill and turns black. - Rotating isometric lighting upside down. Wrapping an entire isometric cube in
transform: rotate(360deg)spins the light-blue top highlight to the bottom and flips the ground shadow overhead. Real isometric motion requires separating semantic<g>layers (iso-shadow,iso-base,iso-float,iso-accent,iso-orbit) so floating lifts the subject while shrinking its ground shadow, and rotational motion only spins internal orbital rings or dials.
Step-by-step workflow
A clean pure-CSS isometric icon pipeline follows three deterministic steps:
- Separate semantic geometry into
<g>groups inside a consistentviewBox="0 0 128 128"30-degree isometric coordinate grid. - Namespace every
<defs>ID, class name, and@keyframesname per icon slug before inserting inline<style>tags. - Always emit
@media (prefers-reduced-motion: reduce)and avoid>child combinators inside<style>so XML serializers do not escape them into>.
Here is a standalone Python 3 snippet using only the standard library that namespaces <defs> IDs, rewrites url(#...) references, and injects a collision-safe floating + shadow animation:
import re
import xml.etree.ElementTree as ET
SVG_NS = "http://www.w3.org/2000/svg"
ET.register_namespace("", SVG_NS)
def namespace_and_animate_svg(raw_svg: str, slug: str, duration_sec: float = 2.0) -> str:
root = ET.fromstring(raw_svg.strip())
prefix = f"iso-{slug}"
id_map = {}
for elem in root.iter():
if "id" in elem.attrib:
old_id = elem.attrib["id"]
new_id = f"{prefix}-{old_id}"
id_map[old_id] = new_id
elem.attrib["id"] = new_id
cls = elem.attrib.get("class", "")
if cls:
elem.attrib["class"] = " ".join(
f"{prefix}-{c[4:]}" if c.startswith("iso-") else c for c in cls.split()
)
ref_re = re.compile(r"url\(\s*#([A-Za-z_][A-Za-z0-9_.:-]*)\s*\)")
for elem in root.iter():
for k, v in list(elem.attrib.items()):
if "url(#" in v:
elem.attrib[k] = ref_re.sub(
lambda m: f"url(#{id_map.get(m.group(1), m.group(1))})", v
)
css = "\n".join([
f"@keyframes {prefix}-kf-float {{ 0%, 100% {{ transform: translateY(0px); }} 50% {{ transform: translateY(-4.5px); }} }}",
f"@keyframes {prefix}-kf-shadow {{ 0%, 100% {{ transform: scale(1); opacity: 0.34; }} 50% {{ transform: scale(0.86); opacity: 0.18; }} }}",
f".{prefix}-float {{ transform-box: fill-box; transform-origin: center; animation: {prefix}-kf-float {duration_sec}s ease-in-out infinite; }}",
f".{prefix}-shadow {{ transform-box: fill-box; transform-origin: center; animation: {prefix}-kf-shadow {duration_sec}s ease-in-out infinite; }}",
f"@media (prefers-reduced-motion: reduce) {{ .{prefix}-float, .{prefix}-shadow {{ animation: none; }} }}",
])
style_el = ET.Element(f"{{{SVG_NS}}}style")
style_el.text = css
root.insert(0, style_el)
return ET.tostring(root, encoding="unicode")
Common pitfalls & edge cases
- Duplicate
xmlnsorns0:prefixes: Always callET.register_namespace("", "http://www.w3.org/2000/svg")before serializing and avoid adding a secondxmlnsattribute manually, orET.fromstringwill fail withduplicate attribute. - Shorthand vs 6-digit hex replacement: When batch-recoloring palettes, normalize
#rgbto#rrggbband match with a hex boundary ((?![0-9a-fA-F])) across both presentation attributes (fill,stroke,stop-color) and inlinestyle="..."properties. - Comma-separated
viewBoxand missing dimensions: Real exports from design tools often containviewBox="0, 0, 120, 80"or omitviewBoxentirely while settingwidth="64px" height="48px". SplitviewBoxon[\s,]+, infer it from numeric dimensions when absent, and includepreserveAspectRatio="xMidYMid meet"when resizing. - Untrusted SVG sanitization: Reject
<!DOCTYPE,<!ENTITY,<script>,on*event attributes, andjavascript:URIs before processing external SVGs.
Automating it in seconds
You can test the Free Browser Studio right on the product page to customize 6 sample isometric 3D icons live—switching between Cyber Cyan, Emerald Mint, Amber Forge, Violet Neon, and Monochrome Slate palettes, adjusting stroke weight, cycle speed, and export size, and copying collision-safe animated SVG or CSS keyframes instantly.
When you need the complete architecture set and automated build-pipeline tooling, the Pro Offline Bundle includes all 24 layered isometric SVG icons across Cloud & Infra, AI & Data, DevTools & API, and Fintech & Security, tokens.json, and svg_animator.py—giving you batch animate, <symbol> sprite compilation with hoisted <defs>, and audit commands offline with zero external dependencies.