These look like CSS custom properties (CSS variables) used to control a scroll-driven or component animation. Brief breakdown:
- -sd-animation: sd-fadeIn;
- Purpose: selects which animation to run (here, a predefined “sd-fadeIn” animation).
- Usage: read by CSS or JavaScript to apply the corresponding keyframes or class.
- –sd-duration: 0ms;
- Purpose: sets the animation duration. “0ms” means no visible animation (instant).
- Usage: used in animation shorthand or transition rules, e.g., animation-duration: var(–sd-duration);
- –sd-easing: ease-in;
- Purpose: sets the timing function (easing) for the animation.
- Usage: animation-timing-function: var(–sd-easing);
Example CSS using these variables:
css
.element {–sd-animation: sd-fadeIn; –sd-duration: 300ms; /* override default / –sd-easing: ease-in;
animation-name: var(–sd-animation); animation-duration: var(–sd-duration); animation-timing-function: var(–sd-easing); animation-fill-mode: both;}
/ keyframes for sd-fadeIn */@keyframes sd-fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); }}
Notes:
- With –sd-duration: 0ms the animation will not animate; set a positive duration to see motion.
Leave a Reply