Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mootools splash screen to load instantly

Featured Replies

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

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'
});

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.