Module
w3cos-runtime/src/window.rs
Description
The transition data structure and easing functions already exist in w3cos-std/src/style.rs (Transition, Easing). Implement the frame loop in the window event loop that interpolates style values over time when they change.
Acceptance Criteria
- When a style property changes and has a
transition defined, animate the change over the specified duration
- Support easing functions:
Linear, EaseIn, EaseOut, EaseInOut
- Smooth 60fps animation using the existing winit event loop
Difficulty
Medium
Relevant Files
crates/w3cos-std/src/style.rs — Transition and Easing types
crates/w3cos-runtime/src/window.rs — Event loop where animation should happen
Module
w3cos-runtime/src/window.rsDescription
The transition data structure and easing functions already exist in
w3cos-std/src/style.rs(Transition,Easing). Implement the frame loop in the window event loop that interpolates style values over time when they change.Acceptance Criteria
transitiondefined, animate the change over the specified durationLinear,EaseIn,EaseOut,EaseInOutDifficulty
Medium
Relevant Files
crates/w3cos-std/src/style.rs— Transition and Easing typescrates/w3cos-runtime/src/window.rs— Event loop where animation should happen