Those are CSS custom properties (CSS variables) likely used by a component or animation system. Briefly:
- -sd-animation: sd-fadeIn;
- Purpose: selects which animation to run (here, “sd-fadeIn”).
- Usage: the component or stylesheet reads this variable to apply corresponding keyframes or classes.
- –sd-duration: 0ms;
- Purpose: sets the animation duration to 0 milliseconds (instant, no visible motion).
- Effect: with 0ms the animation completes immediately; transitions/keyframes won’t be perceptible.
- Note: some browsers still apply end-state styles; some libraries interpret 0ms as “disabled.”
- –sd-easing: ease-in;
- Purpose: sets the timing-function (easing) for the animation.
- Effect with 0ms: easing has no visible effect when duration is 0ms.
- Common values: linear, ease, ease-in-out, cubic-bezier(…).
Example usage:
.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); }}
Recommendations:
- If you want a visible fade-in, set –sd-duration to a positive value (e.g., 200ms).
- If you intend to disable animation, 0ms is fine; alternatively use animation: none.
Leave a Reply