React Spring - Animate element between renders
问题 I'm trying to get my head over React Spring. So I have some boxes, which I need to filter by an active index, and the idea is to animate the boxes rendering, but I'm only having an animation when the component renders the first time. This is what I have so far: import React from "react"; import ReactDOM from "react-dom"; import styled from "@emotion/styled"; import { useTransition, animated } from "react-spring"; import "./styles.css"; const Header = styled.div` display: flex; justify-content