Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation jumps when entering card #17

Open
rikdewit opened this issue Jan 21, 2021 · 1 comment
Open

Animation jumps when entering card #17

rikdewit opened this issue Jan 21, 2021 · 1 comment

Comments

@rikdewit
Copy link

No description provided.

@andriussok
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants