Skip to content

Commit

Permalink
Fixed animation bug for first time visitors
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-Maximus committed Apr 8, 2024
1 parent 565aab9 commit 0870caf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions assets/js/img_animations.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ gsap.registerPlugin(ScrollTrigger);
gsap.utils.toArray(".revealUpImg").forEach(function (elem) {
ScrollTrigger.create({
trigger: elem,
start: "top 90%",
end: "bottom 10%",
start: "top 92%",
end: "bottom 8%",
markers: false,
onEnter: function () {
gsap.fromTo(
Expand Down
10 changes: 5 additions & 5 deletions assets/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,12 @@ body {

#intro-loader {
height: 100vh;
position: relative;
width: 100vw;
position: absolute;
z-index: 100;
}


.intro {
z-index: 2;
position: absolute;
Expand Down Expand Up @@ -337,6 +340,7 @@ body {
font: 0.8em light, sans-serif;
}
}

/*Loading screen end*/

/*spacer*/
Expand All @@ -354,10 +358,6 @@ body {
}






/*Background lines start*/
.pageShapeContainer {
position: fixed;
Expand Down

0 comments on commit 0870caf

Please sign in to comment.