December 14, 201213 yr Hi I'm trying to expand my skills and fallen into implementing a splash screen. I didn't make it from scratch, I followed a tutorial online. It uses mootools. Got it in so it appears and fades, however, there is a .5 - 1 second gap between it appearing. Is there a way I can get it to load instantly and fade (as it does)? I asked the OP and suggested I put the links in the <head> to the top, before any other links. However, this didn't do it. Can anyone suggest a way to get it to load instantly? Heres a link to the tutorial http://blog.cbolson.com/mootools-splash-screen/ Any help would be great! Thanks
December 14, 201213 yr In mootools-SplashScreen.js change showSplash:function(){ this.splash.setStyles({ 'height':window.getScrollHeight(), 'display':'block', 'opacity':'0' }).fade('in'); to showSplash:function(){ this.splash.setStyles({ 'height':window.getScrollHeight(), 'display':'block', 'opacity':'1' });
December 15, 201213 yr Author In mootools-SplashScreen.js change showSplash:function(){ this.splash.setStyles({ 'height':window.getScrollHeight(), 'display':'block', 'opacity':'0' }).fade('in'); to showSplash:function(){ this.splash.setStyles({ 'height':window.getScrollHeight(), 'display':'block', 'opacity':'1' }); Dude! You are the MAN! Thanks for taking the time to look over, I really appreciate it! Thank you.
Create an account or sign in to comment