0.8.2 • Published 1 year ago

@uireact/framer-animations v0.8.2

Weekly downloads
-
License
GNU
Repository
github
Last release
1 year ago

@UiReact tools

UiReact icon

These are a set of tools that we created and are exported as part of the @uireact library, these tools doesn't need the foundation / view packages to work as they don't export UI, instead are helper functions that could work on any React/Typescript project.

You should visit our docs page for all information @uireact docs.

@uireact/framer-animations

This package exports multiple objects that have configurations needed for framer motion animations, to make animations simple and reusable.

We have a page dedicated to this package @uireact/framer-animations docs.

Installation

  1. Install peers:
npm i -S framer-motion

We recomend version 11 and upwards

  1. Install package:
npm i -S @uireact/framer-animations

Usage

Once installed you can start importing animation props like:

    import { UiReactFadeUp } from '@uireact/framer-animations';

    // Using it as is:
    <motion.div style={{backgroundColor: '#000000'}} {...UiReactFadeUp}>
        <p>Some content</p>
    </motion.div>

    // Customizing some props:

    const custom = {...UiReactFadeUp, transition: { delay: 2 }};

    <motion.div style={{backgroundColor: '#000000'}} {...custom}>
        <p>Some content</p>
    </motion.div>
0.8.2

1 year ago

0.8.1

1 year ago

0.8.0

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago