AnimateProps
AnimateProps =
Record<string,number|string>
Defined in: utilities/animate/animate.ts:41
The CSS properties to animate, and where to take them. The keys are CSS property names, with hyphens
('margin-left') or in camelCase (marginLeft): both mean the same.
- A number (or a numeric string, with or without
px) is the target. It is in pixels, except foropacity, which is a plain number. - A string that starts with
+or-, such as'+25', is relative: it is added to the value the property has when the animation starts. A negative number counts as relative too, so-10and'-10'both mean “10 less than now”, never “to -10”.