3d-card-effect icon indicating copy to clipboard operation
3d-card-effect copied to clipboard

Animation jumps when entering card

Open rikdewit opened this issue 4 years ago • 1 comments

rikdewit avatar Jan 21 '21 01:01 rikdewit

Just add setTimout to remove transition straight after enter;

//Animate In
container.addEventListener("mouseenter", (e) => {
  card.style.transition = 'all 0.2s ease-out';
  setTimeout(() => {
    card.style.transition = 'none';
  },300);

andriussok avatar May 22 '21 13:05 andriussok