One transition spec — one CSS property with its own duration / delay / easing. More...
#include <css_animation.hpp>
Public Member Functions | |
| bool | is_snap () const |
| CSS spec — duration <= 0 means "snap" (no tween). | |
| motion::Provenance | motion_provenance () const |
| Build a motion::Provenance envelope for this spec. | |
Public Attributes | |
| AnimatableProperty | property = AnimatableProperty::none |
| std::string | property_name |
| Original CSS property name. | |
| float | duration_seconds = 0.0f |
| float | delay_seconds = 0.0f |
| CssEasing | easing {} |
| std::string | source_file |
| Source attribution. | |
| int | source_line = 0 |
One transition spec — one CSS property with its own duration / delay / easing.
CSS transition: opacity 200ms ease, transform 300ms is parsed into a vector of these.
|
inline |
CSS spec — duration <= 0 means "snap" (no tween).
The dispatcher takes the fast path.
|
inline |
Build a motion::Provenance envelope for this spec.
source_kind="css-transition", source_id=<property_name>, source_file / source_line from the parser. Returns an empty envelope when the parser didn't capture a location (e.g. legacy parse_transition_shorthand entry point).
| float pulp::view::TransitionSpec::delay_seconds = 0.0f |
| float pulp::view::TransitionSpec::duration_seconds = 0.0f |
| CssEasing pulp::view::TransitionSpec::easing {} |
| AnimatableProperty pulp::view::TransitionSpec::property = AnimatableProperty::none |
| std::string pulp::view::TransitionSpec::property_name |
Original CSS property name.
Preserved for the 'all' and unrecognized cases the named enum can't represent.
| std::string pulp::view::TransitionSpec::source_file |
Source attribution.
Filled in by parse_transition_shorthand_with_provenance(...) so an offline motion-trace reader can answer "what CSS file / line defined this transition?". Empty when parsed via the legacy entry point.
| int pulp::view::TransitionSpec::source_line = 0 |