https://sparklewebdesigns.wixsite.com/website-16
check new page n its effect please
check above link it create a time gap when animation fades out n then redirects to home page.
import wixAnimations from ‘wix-animations’ ;
import wixLocation from ‘wix-location’ ;
import wixWindow from ‘wix-window’ ;
let timeline = wixAnimations . timeline ();
const fadeOptions = {
“duration” : 200
};
$w . onReady ( function () {
const myImage = $w ( "#image1" );
timeline
. add ( myImage , {
"opacity" : 0 ,
"duration" : 900
})
. onComplete (() => {
$w ( "#image1" ). hide ( "FadeOut" , fadeOptions );
$w ( "#columnStrip19" ). hide ( 'FadeOut' ). **finally** (()=>{ wixLocation . to ( '/home' )});
}). play ();
});
let me know why the time gap is created and how i cna avoid it
i tried placing wixlocation with <> times doesnt help at all