react-transient
v0.4.4
Published
A transition library focused on simplicity
Downloads
7
Maintainers
Readme
React-Transient
Install
NPM
npm install react-transient
import { Transition, TransitionGroup } from 'react-transient'
const Foo = () => (
<Transition name='foo' mode='out-in'>
{/*...*/}
</Transition>
)
Unpkg
<script src="https://unpkg.com/react-transient/dist/react-transient.min.js"></script>
const { Transition, TransitionGroup } = ReactTransient
const Foo = () => React.createElement(Transition, {
name: 'foo'
mode: 'out-in'
}, /*...*/)
API
Documentation is coming soon! For now, please take a look at the source Typescript files for props definitions:
Transition
TransitionGroup
(uses the same props asTransition
with hardcodedappear
set totrue
)