File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 150150 }
151151 }
152152
153+ // hide the new element before doing anything to it
154+ $ ( newHostElement ) . hide ( ) ;
153155 $ ( currentHostElement ) . fadeOut ( animateCodeMs , function ( ) {
154156 var tabs = document . getElementById ( "showcase-code-tabs" ) ;
155157 currentHostElement . removeChild ( tabs ) ;
162164 document . getElementById ( "showcase-code-content" ) . removeAttribute ( "style" ) ;
163165 }
164166
165- $ ( newHostElement ) . fadeIn ( ) ;
167+ $ ( newHostElement ) . fadeIn ( animateCodeMs ) ;
166168 if ( ! above ) {
167169 // remove the applied width and zoom on the app container, and
168170 // scroll smoothly down to the code's new home
191193 if ( above ) {
192194 $ ( document . body ) . animate ( { scrollTop : 0 } , animateCodeMs ) ;
193195 }
194- $ ( currentHostElement ) . hide ( ) ;
195196 isCodeAbove = above ;
196197 setAppCodeSxsWidths ( above && animate ) ;
197198 $ ( window ) . trigger ( "resize" ) ;
You can’t perform that action at this time.
0 commit comments