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

1.2.4 • Public • Published

TransitionsKit

A set of predefined transition components build on top of react-transition-gorup Implementation is based on Mui source code.

See the demo

Usage example

Fade:
<Fade in={open}>
    <img src='https://picsum.photos/400' />
</Fade>
Slide:
<Slide direction='up' in={checked} container={containerRef.current}>
    content
</Slide>
Grow:
<Grow in={open} timeout={500}>
    <img src='https://picsum.photos/400' />
</Grow>
Collapse:
<Collapse in={open} unmountOnExit>
    <img src='https://picsum.photos/400' />
</Collapse>
Zoom:
<Zoom in={open} timout={500}>
    <img src='https://picsum.photos/400' />
</Zoom>
Blur:
<Blur in={open} timout={500}>
    <img src='https://picsum.photos/400' />
</Blur>

Child requirements:

  • Forward the ref: The transition components require the first child element to forward its ref to the DOM node.
  • Single element: The transition components require only one child element (React.Fragment is not allowed).

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.4689latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.4689
1.2.3218
1.2.2166
1.2.112
1.2.00
1.1.182
1.1.170
1.1.160
1.1.150
1.1.130
1.1.120
1.1.110
1.1.100
1.1.90
1.1.80
1.1.70
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.90
1.0.80
1.0.71
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i transitions-kit

Weekly Downloads

1,088

Version

1.2.4

License

MIT

Unpacked Size

54.8 kB

Total Files

41

Last publish

Collaborators

  • ollylut