These look like CSS custom properties (CSS variables) used to configure a design-system (sd-) animation. Briefly:
- –sd-animation: sd-fadeIn;
- Specifies the animation name or preset (here a fade-in animation labelled “sd-fadeIn”).
- –sd-duration: 0ms;
- Duration of the animation; 0ms means no visible animation (instant).
- –sd-easing: ease-in;
- Timing function that controls acceleration; “ease-in” starts slowly and then speeds up.
How they’re used (example):
.element {animation-name: var(–sd-animation); animation-duration: var(–sd-duration); animation-timing-function: var(–sd-easing);}@keyframes sd-fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); }}
Notes:
- With 0ms duration the easing has no effect.
- If –sd-animation refers to a preset, the CSS might map that name to keyframes or multiple animation properties.
Leave a Reply