@uireact/framer-animations
TypeScript icon, indicating that this package has built-in type declarations

0.8.2 • Public • Published

@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>

Readme

Keywords

none

Package Sidebar

Install

npm i @uireact/framer-animations

Weekly Downloads

31

Version

0.8.2

License

GNU

Unpacked Size

12.3 kB

Total Files

6

Last publish

Collaborators

  • inavac182