Row Impact Shake

An orange chip drops into a row and lands, the row recoils with a fast horizontal shake and a shock ring expands. Good for the moment an item or a result lands.

Motion specs

Duration
3.2s
Easing
cubic-bezier(.5,0,.7,.4)
Technique
WAAPI / CSS transforms
Library
Web Animations API / CSS Transitions
Category
Video & Ad Motions
License
Free for personal and commercial use
AI prompt
Create a web animation named "Row Impact Shake": #0d0e11 background, a dark #16181e row 86% wide and 64px tall with 14px corners and #2a2e38 borders holding an orange A badge and a dashed empty slot. A 44px orange chip with 12px corners falls from above (translate -40,-150, -14deg, 0.7 scale) over 340ms with cubic-bezier(.5,0,.7,.4); on landing the row shakes horizontally through -9, 8, -6, 4, -2 then 0 at 55ms steps while a shock ring expands to 1.7 and fades. The cycle repeats every 3.2s.
Full code (HTML + CSS + JS)
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Row Impact Shake</title>
<style>
body{margin:0;background:#0d0e11;color:#f3f4f6;font-family:system-ui,sans-serif;display:grid;place-items:center;min-height:100vh}
.stage{position:relative;width:100%;max-width:520px;height:250px;display:grid;place-items:center}
.row{display:flex;align-items:center;gap:12px;width:86%;height:64px;border-radius:14px;background:#16181e;border:1px solid #2a2e38;padding:0 16px;will-change:transform}
.tag{width:34px;height:34px;border-radius:9px;background:#ff5e1a;color:#0d0e11;font-weight:800;display:grid;place-items:center}
.slot{flex:1;height:34px;border-radius:9px;background:#0d0e11;border:1px dashed #333844}
.chip{position:absolute;width:44px;height:44px;border-radius:12px;background:#ff5e1a;will-change:transform,opacity}
.ring{position:absolute;width:90px;height:90px;border-radius:50%;border:2px solid #ff5e1a;opacity:0;will-change:transform,opacity}
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}
</style></head><body><div class="stage"><div class="row" id="r"><div class="tag">A</div><div class="slot"></div></div><div class="chip" id="c"></div><div class="ring" id="g"></div></div>
<script>
const r=document.getElementById('r'),c=document.getElementById('c'),g=document.getElementById('g');
function play(){
  r.style.transition='none';r.style.transform='translateX(0)';
  c.style.transition='none';c.style.opacity='0';c.style.transform='translate(-40px,-150px) rotate(-14deg) scale(.7)';
  g.style.transition='none';g.style.opacity='0';g.style.transform='scale(.5)';
  setTimeout(()=>{c.style.transition='opacity .12s ease-out,transform .34s cubic-bezier(.5,0,.7,.4)';c.style.opacity='1';c.style.transform='translate(0px,0px) rotate(0deg) scale(1)';},120);
  setTimeout(()=>{
    g.style.transition='transform .55s ease-out,opacity .55s ease-out';g.style.opacity='1';g.style.transform='scale(1.7)';
    const shakes=[[-9,0],[8,0],[-6,1],[4,1],[-2,1],[0,1]];
    shakes.forEach((s,i)=>setTimeout(()=>{r.style.transition='transform .05s linear';r.style.transform='translateX('+s[0]+'px) translateY('+s[1]+'px)';},i*55));
    setTimeout(()=>{g.style.transition='opacity .35s ease-out';g.style.opacity='0';},260);
  },460);
}
play();setInterval(play,3200);
</script></body></html>

Related templates