Parcourir la source

fix: prevent orbit line clipping on scroll

bob.yuxinyang il y a 1 mois
Parent
commit
78ae36163f
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/index.css

+ 2 - 2
src/index.css

@@ -329,8 +329,8 @@ a {
   left: 7.8vw;
   width: 64vw;
   height: 54vh;
-  overflow: hidden;
-  clip-path: inset(0 calc((1 - var(--orbit-progress)) * 100%) 0 0);
+  overflow: visible;
+  clip-path: inset(-50% calc((1 - var(--orbit-progress)) * 100%) -50% 0);
 }
 
 .orbit-reveal--dashed {