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

1.0.2 • Public • Published

transition-components

NPM version Build npm-typescript License

Transition components allow you to create smooth transition effects for your components.

Live Demo

Installation:

npm install transition-components --save-dev

or

yarn add -D transition-components

Usage :

Add Transitions to your component:

import React from 'react'
import ReactDOM from 'react-dom/client'
import { Transitions } from 'transition-components'

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
    <React.StrictMode>
        <Transitions mode='scale-up-center'>
            <div className='page-container'>Title</div>
        </Transitions>
    </React.StrictMode>,
)

Package Sidebar

Install

npm i transition-components

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

165 kB

Total Files

27

Last publish

Collaborators

  • anhpt-devweb