Skip to content

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

License

Notifications You must be signed in to change notification settings

Grizzly-dart/animation_builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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()
      ..createAt(0.0).backgroundColor('blue')
      ..createAt(1.0).backgroundColor('red');
    
    print(anim.makeKeyframes());
    print(anim.makeOptions());
    
    querySelector('#output').animate(anim.makeKeyframes(), anim.makeOptions());
}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages