Skip to content

[Good First Issue] Implement CSS transition animation playback #1

@wangnaihe

Description

@wangnaihe

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions