Skip to content

Commit

Permalink
[Fix developedbyed#17] Smooth animation when entering card
Browse files Browse the repository at this point in the history
  • Loading branch information
rikdewit committed Jan 21, 2021
1 parent 88dad0d commit efce1d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ container.addEventListener("mousemove", (e) => {
});
//Animate In
container.addEventListener("mouseenter", (e) => {
card.style.transition = "none";
card.style.transition = "all 0.1s ease";
setTimeout(() => card.style.transition = "none", 100);
//Popout
title.style.transform = "translateZ(150px)";
sneaker.style.transform = "translateZ(200px) rotateZ(-45deg)";
Expand Down

0 comments on commit efce1d2

Please sign in to comment.