File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181 const h = Math . max ( minHeight , curHeight - currentScrollY ) ;
8282 dynamicDiv . style . height = h + 'px' ;
8383 curHeight = h ;
84- console . log ( {
85- intended : h ,
86- inline : dynamicDiv . style . height ,
87- computed : getComputedStyle ( dynamicDiv ) . height ,
88- offset : dynamicDiv . offsetHeight
89- } ) ;
9084 window . scrollTo ( currentScrollX , 0 ) ;
9185 // Force recompute of height:
92- const dummy_h = dynamicDiv . style . height ;
9386 const opac = ( h - vanishHeight ) / ( maxHeight - vanishHeight ) ;
9487 splashTxt . forEach ( ( el ) => {
9588 if ( h <= vanishHeight ) {
114107 splashBanner = document . getElementsByClassName ( 'splash-banner' ) [ 0 ] ;
115108 splashLogoTxt = document . getElementsByClassName ( 'splash-banner-logotext' ) [ 0 ] ;
116109 maxHeight = dynamicDiv . offsetHeight ;
117- curHeight = maxHeight ;
110+ curHeight = parseFloat ( dynamicDiv . style . height ) || dynamicDiv . offsetHeight ; // maxHeight;
118111 vanishHeight = minHeight + ( maxHeight - minHeight ) * 0.4 ;
119112 splashTxt = document . querySelectorAll ( '.splash-text' ) ;
120113 window . addEventListener ( 'scroll' , scrollFn ) ;
You can’t perform that action at this time.
0 commit comments