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 5a7b4f2 commit ffdf710
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@
}

.fadeElement.leftFade {
transform: translate(-30vh, 0);
transform: translate(-15vw, 0);
}

.fadeElement.rightFade {
transform: translate(30vh, 0);
transform: translate(15vw, 0);
}

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

0 comments on commit ffdf710

Please sign in to comment.