animation_builder 0.0.1 copy "animation_builder: ^0.0.1" to clipboard
animation_builder: ^0.0.1 copied to clipboard

outdatedDart 1 only

Fluent and type-safe API to build keyframes and timing for Web Animation API

animation_builder #

Fluent and type-safe API to build keyframes and timing for Web Animation API

Usage #

A simple usage example:

void main() {
    final anim = new AnimationBuilder()
          .duration(2000)
          .fillForwards()
          .append(keyframe({}, offset: 0.0).backgroundColor('blue'))
          .append(keyframe({}, offset: 1.0).backgroundColor('red'));
    
    print(anim.makeKeyframes());
    print(anim.makeOptions());
    
    querySelector('#output').animate(anim.makeKeyframes(), anim.makeOptions());
}
0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Fluent and type-safe API to build keyframes and timing for Web Animation API

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on animation_builder