Skip to content

Releases: aholachek/react-flip-toolkit

Typescript refactor

06 Jan 21:06
Compare
Choose a tag to compare
  • Bumped minor version instead of releasing a patch since it was a large refactor
  • Convert library to use typescript
  • Optimize animations to ignore elements whose scale or transform doesn't meet a minimum threshold of transformation

Patch rerelease because types file wasn't copied over in previous patch

01 Jan 14:46
Compare
Choose a tag to compare

Fix experimental `debug` prop

28 Dec 18:15
Compare
Choose a tag to compare

5.0.0

28 Sep 15:10
Compare
Choose a tag to compare

Summary: Use a Reboundjs fork instead of Wobblejs for better performance. Add a lot more options for staggering.

Improved

  1. Better performance: Moved from the library Wobblejs, that creates a render loop for each spring animation, to a custom fork of Reboundjs, that creates only a single render loop for all existing animations. Chrome perftools profiling shows significantly less JavaScript time for each frame, resulting in a slightly higher average frame rate.

  2. Nested Stagger: Before, you could only stagger elements a single level. Now, you can have elements that are staggered for arbitrarily deep levels, enabling animations such as this one.

Added

  1. More stagger configuration options: speed and reverse. You can config the stagger in the staggerConfig prop on the Flipper component.

  2. An improved API for deciding whether a Flipped component should actually flip. Now you can pass down some state from the Flipper component in the decisionData prop, which will be passed into the shouldFlip or shouldInvert functions on the children Flipped components.

  3. A new spring preset, veryGentle, that has just the tiniest bit of bounce.

Removed

  1. As a corollary to #3 in the Added section, removed the old way of telling a Flipped element whether or not to animate (componentId and componentIdFilter).

Degraded

  1. The size of the library increased by about 1kb (gzipped) to 8kb gzipped. Most of the additional code was handling improved stagger configurability although the switch to rebound added a tiny bit as well. I'll be attempting to reduce the size of the library in an upcoming pr.

v4.0.2

16 Aug 15:49
Compare
Choose a tag to compare

Child Flipped elements will now respect their Flipped parents' staggered timing if it exists.

v3.1.1

23 Jul 11:39
Compare
Choose a tag to compare

Make sure Object.assign polyfill is used consistently so that the library works in old browsers

v3.1.0

23 Jul 02:51
Compare
Choose a tag to compare

User facing:

  • Added an option to animate elements in portals
  • Improved handling of animations where elements begin or start with 0 height or 0 width

Non user-facing:

  • Organized code
  • Added a lot more tests