v0.0.5 pre-release

Animate Arrays
with Ease

Add, remove, and reorder array elements smoothly
npm i react-flip-childrenDocs

Usage

apps.tsx
notifications.tsx

<div className="grid">
  <ReorderArray>
    {arr.map(item => 
      <Apps key={item}
        data={item}
        className="animate-appear"
        style={{ zIndex: item }} />)}
  </ReorderArray>
</div>
Gallery
Settings
Files
Chat
Camera
Phone
Calculator
Calendar
Gallery
Settings
Files
Chat
Camera
Phone
Calculator
Calendar
Gallery
Settings
Files
Chat

How it works

React FLIP Array uses the FLIP technique to animate array elements. It calculates the position of each element before and after the array changes, then animates the elements to their new positions.

The component uses the key prop to identify each element. When the array changes, the component will animate the elements to their new positions.

Footer