File tree Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Expand file tree Collapse file tree 4 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 9
9
pageSize = ( doc . clientHeight - window . innerHeight ) ,
10
10
percentageScrolled = Math . floor ( ( scrollPosition / pageSize ) * 100 ) ;
11
11
12
- if ( percentageScrolled > 65 ) {
12
+ if ( percentageScrolled > 50 ) {
13
13
document . querySelector ( '.transparent' ) . className = 'blue' ;
14
+ document . querySelector ( '.new-logo' ) . style . display = '' ;
14
15
}
15
16
16
17
else {
17
18
document . querySelector ( '.blue' ) . className = 'transparent' ;
19
+ document . querySelector ( '.new-logo' ) . style . display = 'none' ;
18
20
}
19
21
20
22
} ;
Original file line number Diff line number Diff line change 3
3
position : absolute ;
4
4
}
5
5
6
+ .new-logo {
7
+ position :relative ;
8
+ top : -3.5rem ;
9
+ > img {
10
+ width :250px ;
11
+ }
12
+ transition : all 0.45s linear ;
13
+ }
14
+
6
15
.blue {
7
- transition : all 0.65 s linear ;
16
+ transition : all 0.45 s linear ;
8
17
}
9
18
10
19
.transparent {
11
20
-webkit-box-shadow : none ;
12
21
box-shadow : none ;
13
22
background : none ;
14
- transition : all 0.65 s linear ;
23
+ transition : all 0.45 s linear ;
15
24
}
16
25
17
26
.parallax-container {
Original file line number Diff line number Diff line change 2
2
top : 0 ;
3
3
position : absolute; }
4
4
5
+ .new-logo {
6
+ position : relative;
7
+ top : -3.5rem ;
8
+ transition : all 0.45s linear; }
9
+ .new-logo > img {
10
+ width : 250px ; }
11
+
5
12
.blue {
6
- transition : all 0.65 s linear; }
13
+ transition : all 0.45 s linear; }
7
14
8
15
.transparent {
9
16
-webkit-box-shadow : none;
10
17
box-shadow : none;
11
18
background : none;
12
- transition : all 0.65 s linear; }
19
+ transition : all 0.45 s linear; }
13
20
14
21
.parallax-container {
15
22
min-height : 100vh ;
You can’t perform that action at this time.
0 commit comments