Manoj Kumar Singh• 970
@dev-mksingh
Posted
Hey @sujood-qureshi , i'm giving this solution, hope this will help you:
const onSubmit = () => {
frontCard.style.transform="translate(-100%, 0%)";
frontCard.style.transition = "transform 0.6s ease-out"
setTimeout(() => {
frontCard.classList.add('hidden');
backCard.classList.remove('hidden');
}, 500);
}
Hope this will be helpful.
Marked as helpful
1