Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. animation: fadein 0.5s ease-in forwards;
  2. opacity: 0;
  3. animation-delay: ${(props: ISliderItem) =>
  4. props.animationOffset ? `${props.animationOffset * 300}ms` : 0};
  5. @keyframes fadein {
  6. from {
  7. opacity: 0;
  8. }
  9. to {
  10. opacity: 1;
  11. }
  12. }
  13.  
  14. use the index as the animation offset on the container that renders the children you want to animate in.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement