📜  反应动画 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:25.650000             🧑  作者: Mango

代码示例1
import styled, { keyframes } from 'styled-components';
import { bounce } from 'react-animations';

const bounceAnimation = keyframes`${bounce}`;

const BouncyDiv = styled.div`
  animation: 1s ${bounceAnimation};
`;