Squash & Stretch
Schiaccia e allunga · Compresión y estiramiento · Squash and stretch · Principio Disney
The first of Disney's 12 principles of animation. Objects squash on impact and stretch at speed while keeping their volume, so they feel elastic and alive.
- Era
- 1930 – today
- Origin
- Stati Uniti
- Geography
- United States
Live demo
View code
<div class="stage"><h2>boing!</h2><div class="col"><span class="ball"></span></div><span class="shadow"></span><div class="ground"></div></div> body{margin:0;background:#FFF3E0;overflow:hidden}
.stage{position:relative;height:100%;overflow:hidden}
.ground{position:absolute;left:0;right:0;bottom:0;height:44px;background:#2D3047}
.col{position:absolute;left:calc(50% - 40px);bottom:44px;width:80px;height:220px}
.ball{position:absolute;left:0;bottom:0;width:80px;height:80px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ff8a9b,#FF5D73 60%,#d63a52);transform-origin:50% 100%}
.shadow{position:absolute;left:calc(50% - 45px);bottom:36px;width:90px;height:14px;border-radius:50%;background:#2D304766}
h2{position:absolute;top:18px;left:22px;margin:0;font:800 40px 'Baloo 2',sans-serif;color:#5BC0EB;transform:rotate(-8deg);text-shadow:3px 3px 0 #FFC93C}
@media (prefers-reduced-motion:no-preference){.ball{animation:bounce 1s infinite}.shadow{animation:sh 1s infinite}h2{animation:pop 1s infinite}}
@keyframes bounce{0%{bottom:140px;transform:scale(.95,1.05);animation-timing-function:cubic-bezier(.5,0,1,.6)}46%{bottom:0;transform:scale(.8,1.25)}50%{bottom:0;transform:scale(1.4,.62);animation-timing-function:cubic-bezier(0,.4,.5,1)}56%{bottom:6px;transform:scale(.85,1.2)}66%{transform:scale(1.04,.96)}100%{bottom:140px;transform:scale(.95,1.05)}}
@keyframes sh{0%,100%{transform:scale(.45);opacity:.4}50%{transform:scale(1.15);opacity:1}}
@keyframes pop{0%,45%,70%,100%{scale:1}52%{scale:1.2}} Characteristics
- Constant volume (scaleX inverse to scaleY)
- Squash on impact
- Stretch along the direction of travel
- Anticipation and rebound
- Shadow shrinking and spreading
Palette
Click a swatch to copy it
Typography
Headings · Baloo 2 Squash & Stretch
Body · Nunito The first of Disney's 12 principles of animation. Objects squash on impact and stretch at speed while keeping their volume, so they feel elastic and alive.
Motion
- Easing
ease-in in caduta / ease-out in salita- Typical duration
- 600–1200 ms per rimbalzo
- Techniques
- scale(x, y) con transform-origin in basso, keyframe con timing function per segmento, spring physics (Framer Motion / GSAP), linear() easing CSS
Accessibility (reduced motion)
Show the ball resting on the ground, at most with a slight scale change on click.
Prompt for your agent
Copy and paste into your prompt to have an agent or image generator reproduce this style.
For web pages and UI
Design the web page or interface in this style: Squash & Stretch (Schiaccia e allunga, Compresión y estiramiento). The first of Disney's 12 principles of animation. Objects squash on impact and stretch at speed while keeping their volume, so they feel elastic and alive. Characteristics: Constant volume (scaleX inverse to scaleY), Squash on impact, Stretch along the direction of travel, Anticipation and rebound, Shadow shrinking and spreading. Palette: #FFF3E0, #FF5D73, #FFC93C, #2D3047, #5BC0EB. Typography: headings in Baloo 2, body text in Nunito (Google Fonts or equivalents). Mood: playful, energetic, bold. Motion: easing ease-in in caduta / ease-out in salita, typical duration 600–1200 ms per rimbalzo; techniques: scale(x, y) con transform-origin in basso, keyframe con timing function per segmento, spring physics (Framer Motion / GSAP), linear() easing CSS. With prefers-reduced-motion: Show the ball resting on the ground, at most with a slight scale change on click. References: Ollie Johnston e Frank Thomas «The Illusion of Life» (1981), Disney «Biancaneve e i sette nani» (1937), esercizio della palla che rimbalza, Richard Williams «The Animator's Survival Kit».
Relations
References
- Ollie Johnston e Frank Thomas «The Illusion of Life» (1981)
- Disney «Biancaneve e i sette nani» (1937)
- esercizio della palla che rimbalza
- Richard Williams «The Animator's Survival Kit»