skyblued 2 rokov pred
rodič
commit
0838e402b4

+ 3 - 3
src/student/teacher-dependent/teacher-home.tsx

@@ -44,13 +44,13 @@ export default defineComponent({
     })
     useEventListener(document, 'scroll', evt => {
       const { y } = useWindowScroll()
-      // this.background = `rgba(255, 255, 255, ${y.value / 100})`
+      this.background = `rgba(255, 255, 255, ${(y.value - 40) / 100})`
       if (y.value > 65) {
         this.headColor = '#000'
-        this.background = '#fff'
+        // this.background = '#fff'
         this.backIconColor = 'black'
       } else {
-        this.background = 'transparent'
+        // this.background = 'transparent'
         this.headColor = '#fff'
         this.backIconColor = 'white'
       }