Skip to content

Commit

Permalink
test fadein
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrodevog committed Oct 25, 2023
1 parent 7b65619 commit 7f4858c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 17 deletions.
14 changes: 0 additions & 14 deletions module/CommonBundle/Resources/assets/common/js/fade.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
transform: translate(15vw, 0) rotate(-5deg);
}

.fadeElement.visibleFade {
.fadeElement.visible {
opacity: 1;
transform: translate(0, 0);
}
Expand Down
4 changes: 2 additions & 2 deletions module/CommonBundle/Resources/views/common/index/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@
for (var i = 0; i < tags.length; i++) {
var tag = tags[i];
if ($(tag).position().top < pageBottom && pageTop < $(tag).position().top) {
$(tag).addClass("visibleFade");
$(tag).addClass("visible");
console.log("v");
} else {
$(tag).removeClass("visibleFade");
$(tag).removeClass("visible");
console.log("i");
}
}
Expand Down

0 comments on commit 7f4858c

Please sign in to comment.