Skip to content
This repository has been archived by the owner on Aug 21, 2023. It is now read-only.

Animate: Implement AnimeJS #142

Merged
merged 16 commits into from
Dec 4, 2017
Merged

Animate: Implement AnimeJS #142

merged 16 commits into from
Dec 4, 2017

Conversation

ItsJonQ
Copy link
Contributor

@ItsJonQ ItsJonQ commented Dec 4, 2017

Animate: Implement AnimeJS

screen recording 2017-12-04 at 12 43 pm

This mega update implements anime.js to power the Animate component. The animation sequencing setup has been overhauled with additional lifecycle hooks provided by react-transition-group.

These hooks (props) are:

  • onEnter
  • onEntering
  • onEntered
  • onExiting
  • onExit
  • onExited

Which correspond the the specified animation sequence (if available).

Dat Bounce

screen recording 2017-12-04 at 01 32 pm

This update also provides a new elastic/bounce animation curve, which is used by default (with the exception of opacity based animations).

Component API change

Note, the Animate component's sequence prop did receive some changes. The fadeIn sequence has been renamed to fade. Below are a list of sequences. Like before, they can be used by themselves or combined:

  • down
  • downSmall
  • fade
  • left
  • right
  • scale
  • scaleBig
  • up

Other than that, nothing needs to be adjusted for Animate or AnimateGroup

Resolves: #69

ItsJonQ added 11 commits October 19, 2017 12:54
Tests are still broken… but it's getting better!
Quite a few tests were broken due to the new JSDOM polyfills that
were added (to support animejs). These have been fixed by using
the new `wait` helper to better time assertions.
@ItsJonQ ItsJonQ self-assigned this Dec 4, 2017
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 92fdda0 on animejs into ** on master**.

@ItsJonQ ItsJonQ merged commit 8531441 into master Dec 4, 2017
@ItsJonQ ItsJonQ deleted the animejs branch December 4, 2017 20:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants