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 ddc8f91 commit 7b65619
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
.fadeElement {
display: inline-block;
opacity: 0;
transition: all 2.5s;
transition: all 1.5s;
}

.fadeElement.leftFade {
Expand All @@ -105,7 +105,7 @@
transform: translate(15vw, 0) rotate(-5deg);
}

.fadeElement.visible {
.fadeElement.visibleFade {
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("visible");
$(tag).addClass("visibleFade");
console.log("v");
} else {
$(tag).removeClass("visible");
$(tag).removeClass("visibleFade");
console.log("i");
}
}
Expand Down

0 comments on commit 7b65619

Please sign in to comment.