These look like custom CSS variables used to control a component’s animation. Brief breakdown:
- -sd-animation: sd-fadeIn;
- Specifies the animation name or preset to apply. Here it likely references a predefined keyframes set named “sd-fadeIn” that fades the element in (opacity and/or translate).
- –sd-duration: 0ms;
- Duration for the animation. 0ms means the animation completes instantly (no visible transition).
- –sd-easing: ease-in;
- Timing function controlling acceleration; “ease-in” starts slowly and speeds up.
Practical notes:
- With duration 0ms the easing and animation name have no visible effect; set a positive duration (e.g., 200ms–400ms) to see the fade.
- Ensure the named animation exists, e.g.:
css
@keyframes sd-fadeIn {from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); }} - Apply variables in CSS rules:
css
.my-element { animation-name: var(–sd-animation); animation-duration: var(–sd-duration); animation-timing-function: var(–sd-easing); animation-fill-mode: both;} - Override per-element by changing the custom properties (e.g., inline style or different selector) for different durations/easings.
Leave a Reply