David Khourshid @davidkpiano
Style and branding.
Guidance and clarification.
How long an iteration of an animation takes to complete.
0s
1s
2s
How long it takes before an animation starts
0s
0.5s
1.5s
The easing of an animation.
cubic-bezier(0.5, 0, 0.5, 1)
Also known as CSS Custom Properties
:root {
--duration: 2s;
}
.thing {
animation-duration: calc(var(--duration, 1s));
}
const thingEl = document.querySelector('.thing');
thingEl.style.setProperty('--color', 'green');
✅ Transform and opacity
👍 Color and background
❌ Height, width, left, right, etc.