react-animatable

Tiny(~1kB) animation hooks for React, built on Web Animations API.

MIT License

Downloads
104
Stars
46
Committers
3

Bot releases are visible (Hide)

react-animatable - 0.15.2 Latest Release

Published by inokawa 11 months ago

What's Changed

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.15.1...0.15.2

react-animatable - 0.15.1

Published by inokawa 11 months ago

What's Changed

Remove internal fields from d.ts

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.15.0...0.15.1

react-animatable - 0.15.0

Published by inokawa about 1 year ago

What's Changed

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.14.1...0.15.0

react-animatable - 0.14.1

Published by inokawa about 1 year ago

What's Changed

Update readme

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.14.0...0.14.1

react-animatable - 0.14.0

Published by inokawa about 1 year ago

BREAKING: Add exports field to package.json

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.13.7...0.14.0

react-animatable - 0.13.7

Published by inokawa over 1 year ago

What's Changed

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.13.6...0.13.7

react-animatable - 0.13.6

Published by inokawa over 1 year ago

  • Init animation in setTime to start animation without calling play

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.13.5...0.13.6

react-animatable - 0.13.5

Published by inokawa almost 2 years ago

  • BREAKING: Change some of minor APIs
  • Fixed to reset playback direction if finished
  • Add css variables type to TypedKeyframe
  • Replace useState with useRef

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.13.4...0.13.5

react-animatable - 0.13.4

Published by inokawa almost 2 years ago

What's Changed

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.13.3...0.13.4

react-animatable - 0.13.3

Published by inokawa almost 2 years ago

  • BREAKING: Replaced end with waitFor
  • BREAKING: Fixed argument of useTransitionAnimation
  • Changed some type aliases to interface.

What's Changed

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.13.2...0.13.3

react-animatable - 0.13.2

Published by inokawa almost 2 years ago

react-animatable - 0.13.1

Published by inokawa almost 2 years ago

  • Updated readme.
  • Make bundle size bit smaller.

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.13.0...0.13.1

react-animatable - 0.13.0

Published by inokawa almost 2 years ago

  • 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

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.12.1...0.13.0

react-animatable - 0.12.1

Published by inokawa almost 2 years ago

react-animatable - 0.12.0

Published by inokawa almost 2 years ago

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>

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.11.1...0.12.0

react-animatable - 0.11.1

Published by inokawa almost 2 years ago

react-animatable -

Published by inokawa almost 2 years ago

react-animatable - 0.10.3

Published by inokawa over 2 years ago

  • Fix useAnimation to accept function as keyframe

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.10.2...0.10.3

react-animatable - 0.10.2

Published by inokawa over 2 years ago

  • Persist style in useTransitionAnimation

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.10.1...0.10.2

react-animatable - 0.10.1

Published by inokawa over 2 years ago

  • Ignore uncaught promise error in useTransitionAnimation hook

Full Changelog: https://github.com/inokawa/react-animatable/compare/0.10.0...0.10.1