Skip to content

Releases: inokawa/react-animatable

0.13.2

20 Nov 14:51
Compare
Choose a tag to compare

Update description.

Full Changelog: 0.13.1...0.13.2

0.13.1

20 Nov 08:18
Compare
Choose a tag to compare
  • Updated readme.
  • Make bundle size bit smaller.

Full Changelog: 0.13.0...0.13.1

0.13.0

20 Nov 05:10
Compare
Choose a tag to compare
  • Fixed useAnimation and useAnimationFunction to be able to pass some argument when play.
const animate = useAnimation<{ x: number; y: number }>(
  (prev, args) => [
    { transform: prev.transform },
    { transform: `translate(${args.x}px, ${args.y}px)` },
  ],
  {
    duration: 400,
    easing: "ease-in-out",
  }
);

useEffect(() => {
  animate.play({ args: { x: 100, y: 200 } });
}, [])
  • BREAKING: removed useAnimationController hook and persist method in favor of prev and args functionality of useAnimation.
  • BREAKING: renamed AnimationGroup to TransitionGroup

What's Changed

  • Remove persist method in favor of keyframe function by @inokawa in #22
  • Support dynamic keyframe by @inokawa in #23
  • Remove useAnimationController by @inokawa in #24
  • Add argument to useAnimationFunction by @inokawa in #25
  • Rename AnimationGroup to TransitionGroup by @inokawa in #26

Full Changelog: 0.12.1...0.13.0

0.12.1

12 Nov 17:34
Compare
Choose a tag to compare

Support Next.js and SSR.

Full Changelog: 0.12.0...0.12.1

0.12.0

12 Nov 13:37
Compare
Choose a tag to compare

What's Changed

BREAKING: ref field was remove from AnimationHandle and AnimationController type. Just pass them directly to target element!

const animate = useAnimation(...);
return <div ref={animate}>...</div>
  • Remove ref field and make animation handle callable by @inokawa in #17
  • Improve type of animation handle by @inokawa in #18

Full Changelog: 0.11.1...0.12.0

0.11.1

12 Nov 04:23
Compare
Choose a tag to compare

Improve build setting

Full Changelog: 0.11.0...0.11.1

0.11.0

31 Oct 12:20
Compare
Choose a tag to compare

0.10.3

05 Jul 10:39
Compare
Choose a tag to compare
  • Fix useAnimation to accept function as keyframe

Full Changelog: 0.10.2...0.10.3

0.10.2

02 Jul 15:29
Compare
Choose a tag to compare
  • Persist style in useTransitionAnimation

Full Changelog: 0.10.1...0.10.2

0.10.1

02 Jul 13:08
Compare
Choose a tag to compare
  • Ignore uncaught promise error in useTransitionAnimation hook

Full Changelog: 0.10.0...0.10.1