DEV Community

Swapnil Tiwari
Swapnil Tiwari

Posted on

animation-wrapper-view, declarative animations with imperative controls

animation-wrapper-view is a collection of a well-defined set of component-level animations, that a developer can utilize just by providing some configurations. AnimationWrapperView will add plug and play type support to the already robust Animated API and will take care of all the intricate details of each animation type.

Features

  • Power animation payload from anywhere (backend ? 😉)
  • Extremely light-weight (4KB gzipped + minified).
  • Out-of-box support for iOS, Android and RNW.
  • Great selection of well defined animations.
  • Declarative transformation animations with JSON.
  • Imperative controls to the animation state. (start/pause/reset)

Check out this snack, play around with the library.
Snack Link: https://snack.expo.dev/@swapnil1104/animationwrapperview-playground
Library Link: https://github.com/flipkart-incubator/animation-wrapper-view

People looking for solving complex animation use-cases with JSON-based payload, potentially server-driven, can definitely have a look! Looking forward to any feedback/feature requests!

Cheers.

Top comments (0)