Iconos animados
Animated icons · Icone animate · Micro-icon morph · Iconos animados · Icon state transitions
Iconos que cambian de estado con una pequeña transformación en lugar de un salto, como la hamburguesa que se convierte en una X o el play que se abre en pausa. Difundidos por Material Design, que los convirtió en un detalle de calidad, hoy se hacen con CSS, SVG o archivos Lottie.
- Época
- 2014 – hoy
- Origen
- Stati Uniti
- Uso
- Principal
- Geografía
- Estados Unidos
Demo en vivo
Ver el código
<main class="root">
<div class="it"><div class="btn"><span class="burger"><i></i><i></i><i></i></span></div><small>Menu</small></div>
<div class="it"><div class="btn"><span class="play"><i class="pa"></i><i class="pb"></i></span></div><small>Riproduci</small></div>
<div class="it"><div class="btn"><svg viewBox="0 0 24 24" class="heart"><g class="burst" stroke="#FF5A5F" stroke-width="2" stroke-linecap="round"><path d="M12 1v2M21 5l-1.5 1.5M3 5l1.5 1.5M23 13h-2M1 13h2"/></g><path class="hp" d="M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z"/></svg></div><small>Mi piace</small></div>
<div class="it"><div class="btn"><svg viewBox="0 0 24 24" class="check"><circle class="ring" cx="12" cy="12" r="9"/><path class="tick" d="M7.5 12.5l3 3 6-6.5"/></svg></div><small>Fatto</small></div>
<div class="it"><div class="btn"><svg viewBox="0 0 24 24" class="bell"><g class="sw"><path d="M6 16V11a6 6 0 0 1 12 0v5l1.5 2h-15z" fill="none" stroke="#1C1B22" stroke-width="2" stroke-linejoin="round"/><path d="M10 20.5a2 2 0 0 0 4 0" fill="none" stroke="#1C1B22" stroke-width="2"/></g><circle class="badge" cx="18" cy="6" r="3.5"/></svg></div><small>Notifiche</small></div>
<div class="it"><div class="btn"><svg viewBox="0 0 24 24" class="theme"><mask id="m"><rect width="24" height="24" fill="#fff"/><circle class="mc" cx="24" cy="2" r="7" fill="#000"/></mask><circle class="core" cx="12" cy="12" r="5" mask="url(#m)"/><g class="rays" stroke-width="2" stroke-linecap="round"><path d="M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"/></g></svg></div><small>Tema</small></div>
</main> body{margin:0;height:100vh;display:grid;place-items:center;background:#F4F1EC;font-family:Manrope,sans-serif;color:#1C1B22;overflow:hidden}
.root{width:480px;max-width:92vw;display:grid;grid-template-columns:repeat(3,1fr);gap:22px 18px}
.it{display:flex;flex-direction:column;align-items:center;gap:8px}
.it small{font-size:12px;font-weight:600;color:#6d6a73}
.btn{width:76px;height:76px;border-radius:22px;background:#fff;display:grid;place-items:center;box-shadow:0 1px 0 #fff inset,0 14px 26px -16px #1C1B2266,0 0 0 1px #1C1B220d}
.btn svg{width:34px;height:34px;overflow:visible}
.burger{position:relative;width:28px;height:20px}
.burger i{position:absolute;left:0;width:28px;height:3px;border-radius:3px;background:#1C1B22}
.burger i:nth-child(1){top:0}.burger i:nth-child(2){top:8.5px}.burger i:nth-child(3){top:17px}
.play{position:relative;width:24px;height:26px}
.play i{position:absolute;inset:0;background:#5B5BD6}
.pa{clip-path:polygon(4% 0,52% 27%,52% 73%,4% 100%)}.pb{clip-path:polygon(52% 27%,100% 50%,100% 50%,52% 73%)}
.hp{fill:transparent;stroke:#1C1B22;stroke-width:2;stroke-linejoin:round;transform-origin:12px 13px}
.burst{opacity:0;transform-origin:12px 12px}
.ring{fill:none;stroke:#22B07D;stroke-width:2;opacity:.25}
.tick{fill:none;stroke:#22B07D;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16;stroke-dashoffset:16}
.sw{transform-origin:12px 4px}
.badge{fill:#FF5A5F;transform-origin:18px 6px;transform:scale(0)}
.core{fill:#FFB020}.rays{stroke:#FFB020;transform-origin:12px 12px}
@media (prefers-reduced-motion:no-preference){
.burger i{animation:4s cubic-bezier(.34,1.56,.64,1) infinite}
.burger i:nth-child(1){animation-name:b1}.burger i:nth-child(2){animation-name:b2}.burger i:nth-child(3){animation-name:b3}
@keyframes b1{0%,30%,92%,100%{transform:none}42%,80%{transform:translateY(8.5px) rotate(45deg)}}
@keyframes b2{0%,30%,92%,100%{opacity:1;transform:none}42%,80%{opacity:0;transform:scaleX(.2)}}
@keyframes b3{0%,30%,92%,100%{transform:none}42%,80%{transform:translateY(-8.5px) rotate(-45deg)}}
.pa{animation:pa 4s ease-in-out .1s infinite}.pb{animation:pb 4s ease-in-out .1s infinite}
@keyframes pa{0%,30%,92%,100%{clip-path:polygon(4% 0,52% 27%,52% 73%,4% 100%)}42%,80%{clip-path:polygon(8% 0,38% 0,38% 100%,8% 100%)}}
@keyframes pb{0%,30%,92%,100%{clip-path:polygon(52% 27%,100% 50%,100% 50%,52% 73%)}42%,80%{clip-path:polygon(62% 0,92% 0,92% 100%,62% 100%)}}
.hp{animation:hp 4s cubic-bezier(.34,1.56,.64,1) .2s infinite}
.burst{animation:bu 4s ease-out .2s infinite}
@keyframes hp{0%,30%,92%,100%{fill:transparent;stroke:#1C1B22;transform:scale(1)}36%{transform:scale(.7);fill:#FF5A5F;stroke:#FF5A5F}46%,80%{transform:scale(1);fill:#FF5A5F;stroke:#FF5A5F}}
@keyframes bu{0%,34%{opacity:0;transform:scale(.6)}44%{opacity:1;transform:scale(1.15)}60%,100%{opacity:0;transform:scale(1.3)}}
.tick{animation:tk 4s ease-out .3s infinite}.ring{animation:rg 4s ease-out .3s infinite}
@keyframes tk{0%,32%{stroke-dashoffset:16}46%,82%{stroke-dashoffset:0}92%,100%{stroke-dashoffset:16}}
@keyframes rg{0%,30%{opacity:.25}40%,82%{opacity:1}92%,100%{opacity:.25}}
.sw{animation:bl 4s ease-in-out .35s infinite}.badge{animation:bd 4s cubic-bezier(.34,1.56,.64,1) .35s infinite}
@keyframes bl{0%,32%,72%,100%{transform:none}36%{transform:rotate(16deg)}42%{transform:rotate(-14deg)}48%{transform:rotate(10deg)}54%{transform:rotate(-6deg)}60%{transform:rotate(3deg)}}
@keyframes bd{0%,34%,92%,100%{transform:scale(0)}44%,82%{transform:scale(1)}}
.mc{animation:mc 4s cubic-bezier(.34,1.3,.64,1) .4s infinite}.rays{animation:ry 4s ease-in-out .4s infinite}.core{animation:co 4s ease-in-out .4s infinite}
@keyframes mc{0%,30%,92%,100%{transform:none}44%,80%{transform:translate(-8px,6px)}}
@keyframes ry{0%,30%,92%,100%{transform:none;opacity:1}42%,80%{transform:rotate(90deg) scale(.4);opacity:0}}
@keyframes co{0%,30%,92%,100%{fill:#FFB020;transform:none}42%,80%{fill:#5B5BD6;transform:scale(1.7)}}
.core{transform-origin:12px 12px}
}
@media (max-width:420px){.root{gap:14px 8px}.btn{width:60px;height:60px;border-radius:18px}.btn svg{width:28px;height:28px}} Características
- Morph entre dos formas con el mismo número de puntos
- Trazos que se dibujan con stroke-dashoffset
- Pequeño rebote de escala al confirmar
- Duraciones cortas entre 150 y 400 ms
- Color que cambia junto con la forma
Paleta
Haz clic en un color para copiarlo
Tipografía
Títulos · Manrope Iconos animados
Texto · Manrope Iconos que cambian de estado con una pequeña transformación en lugar de un salto, como la hamburguesa que se convierte en una X o el play que se abre en pausa. Difundidos por Material Design, que los convirtió en un detalle de calidad, hoy se hacen con CSS, SVG o archivos Lottie.
Movimiento
- Easing
cubic-bezier(0.34, 1.56, 0.64, 1) (con leggero rimbalzo) o ease-in-out- Duración típica
- 150–400 ms per cambio di stato
- Técnicas
- CSS transform su linee separate, clip-path polygon morph, stroke-dasharray e stroke-dashoffset, SVG SMIL animate, Lottie e Rive, Framer Motion
Accesibilidad (reduced motion)
Cambia directamente de icono con un fundido cruzado breve; sin rebotes, sacudidas ni explosiones de partículas.
Prompt para tu agente
Copia y pega en tu prompt para que un agente o un generador de imágenes reproduzca este estilo.
Para páginas web y UI
Diseña la página web o la interfaz con este estilo: Iconos animados (Animated icons, Icone animate). Iconos que cambian de estado con una pequeña transformación en lugar de un salto, como la hamburguesa que se convierte en una X o el play que se abre en pausa. Difundidos por Material Design, que los convirtió en un detalle de calidad, hoy se hacen con CSS, SVG o archivos Lottie. Características: Morph entre dos formas con el mismo número de puntos, Trazos que se dibujan con stroke-dashoffset, Pequeño rebote de escala al confirmar, Duraciones cortas entre 150 y 400 ms, Color que cambia junto con la forma. Paleta: #F4F1EC, #1C1B22, #FF5A5F, #22B07D, #FFB020, #5B5BD6. Tipografía: títulos en Manrope, texto en Manrope (Google Fonts o equivalentes). Atmósfera: lúdico, táctil, limpio. Movimiento: easing cubic-bezier(0.34, 1.56, 0.64, 1) (con leggero rimbalzo) o ease-in-out, duración típica 150–400 ms per cambio di stato; técnicas: CSS transform su linee separate, clip-path polygon morph, stroke-dasharray e stroke-dashoffset, SVG SMIL animate, Lottie e Rive, Framer Motion. Con prefers-reduced-motion: Cambia directamente de icono con un fundido cruzado breve; sin rebotes, sacudidas ni explosiones de partículas. Referencias: Material Design «Motion: icon transitions», LottieFiles, useAnimations (React), CSS-Tricks «SVG line animation».
Relaciones
Opuesto a
Referencias
- Material Design «Motion: icon transitions»
- LottieFiles
- useAnimations (React)
- CSS-Tricks «SVG line animation»