Those are CSS custom properties (variables) — likely used by a component or a design system to control an animation. Brief explanation of each:
- –sd-animation: sd-fadeIn;
- Selects the animation preset or keyframes name (here, “sd-fadeIn”), which defines how the element animates (e.g., opacity and transform changes).
- –sd-duration: 0ms;
- Animation duration in milliseconds. 0ms means no visible animation — the change is instantaneous.
- –sd-easing: ease-in;
- Timing function that controls acceleration. “ease-in” starts slow and speeds up toward the end.
Practical notes:
- To enable the fade-in, set a positive duration (e.g., 300ms) and ensure corresponding keyframes exist:
- Example keyframes name: @keyframes sd-fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
- These variables can be used in CSS like:
animation-name: var(–sd-animation);animation-duration: var(–sd-duration);animation-timing-function: var(–sd-easing);animation-fill-mode: both; - Ensure the element’s initial styles match the animation (e.g., starting opacity 0 if fade-in).
- You can override them per-element or via media queries (reduce-motion: reduce → set –sd-duration: 0ms).
Leave a Reply