Skip to content

Commit

Permalink
bug: potential fix for vh mobile preload bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobijudah committed Feb 18, 2022
1 parent 571f4ec commit c2393d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/App.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
position: absolute;
width: 100vw;
height: 100vh;
opacity: 0;

&[data-name="Gallery"] {
background: #f5f5f5;
Expand Down
3 changes: 3 additions & 0 deletions src/animations/preloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ const PreloaderAnimation = (elements: gsap.TweenTarget[]) => {
gsap.set(".hidden-init", {
visibility: "hidden",
});
gsap.set("[data-name]", {
opacity: 1,
});
preloader.kill();
});

Expand Down
4 changes: 4 additions & 0 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
box-sizing: border-box;
}

html {
background: #000;
}

html[data-scroll-direction] {
overflow: hidden;
position: fixed;
Expand Down

1 comment on commit c2393d1

@vercel
Copy link

@vercel vercel bot commented on c2393d1 Feb 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.