Expand description
Animated values.
Some values, notably colors, cannot be interpolated directly with their computed values and need yet another intermediate representation. This module’s raison d’être is to ultimately contain all these types.
Modules§
- color
- Animated types for CSS colors.
- effects
- Animated types for CSS values related to effects.
- font 🔒
- Animation implementation for various font-related types.
- grid 🔒
- Animation implementation for various grid-related types.
- lists
- Lists have various ways of being animated, this module implements them.
- svg 🔒
- Animation implementations for various SVG-related types.
- transform
- Animated types for transform.
Macros§
Structs§
- Context
- The context needed to provide an animated value from a computed value.
Enums§
- Procedure
- An animation procedure.
- Property
Category 🔒 - The category a property falls into for ordering purposes.
Traits§
- Animate
- Animate from one value to another.
- ToAnimated
Value - Conversion between computed values and intermediate values for animations.
- ToAnimated
Zero - Returns a value similar to
self
that represents zero.
Functions§
- animate_
multiplicative_ factor - A helper function to animate two multiplicative factor.
- compare_
property_ priority - A comparator to sort PropertyIds such that physical longhands are sorted before logical longhands and shorthands, shorthands with fewer components are sorted before shorthands with more components, and otherwise shorthands are sorted by IDL name as defined by [Web Animations][property-order].