akiran / akiran/react-slick

Adding animation when new items added or item remove

Ouverte
#1,827 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
11.9k
Forks
2.1k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Hello, I am facing with animation in my project. The scenerio is:

1. Slider draw some card components in slide. for example 15 cards. (Simple card components like ant-d did)
2. I have array of objects in state to hold these card contents, and create cards when slider is rendering.
3. I can add or remove cards after initial render. So I am manipulating the array in state. There is no issue with it. However, adding or removing action occur instantly, "bam". I want to add fade animation for removing card, and after fade-out finish, other cards should slide whereever they should be.

Can I do these animations with react-slick? Because react-slick calculates the position of child elements

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.