This package has been deprecated

Author message:

package has been renamed to @element-motion/core

yubaba
TypeScript icon, indicating that this package has built-in type declarations

2.4.1 • Public • Published

yubaba 🧙✨

/juːbaːba/ out of the box animated experiences for React.js 🧙✨

npm npm bundle size (minified + gzip)

Moving from a persisted element Moving to another distinct element Moving using a focal target

What is yubaba???

It's all about ✨animation over state transitions ✨it can help with:

Installation

yubaba has a peer dependency on emotion for some of the more advanced animations.

npm install yubaba react@^16.4.x react-dom@^16.4.x emotion@^10.x.x --save

or

yarn add yubaba react@^16.4.x react-dom@^16.4.x emotion@^10.x.x

Tip - Both es and commonjs modules are provided in the package. Make sure to consume the es modules for their tree shaking ability!

Usage

import Animator, { Move } from 'yubaba';
 
({ isLarge }) => (
  <Animator triggerSelfKey={isLarge}>
    <Move>{anim => <div {...anim} className={isLarge ? 'large' : 'small'} />}</Move>
  </Animator>
);

Next steps

Package Sidebar

Install

npm i yubaba

Weekly Downloads

27

Version

2.4.1

License

MIT

Unpacked Size

3.82 MB

Total Files

406

Last publish

Collaborators

  • madou