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.

Jquery on page load

Featured Replies

I should first mention my Jquery skills are pretty much null...

 

So what i'm trying to do is, On page load have the black rectangle;

 

  1. flicker
  2. slide right to reveal some text
  3. delay
  4. slide left (Hiding the text) and revealing the website which slides with the rectangle
  5. flicker
  6. fade out

I've gotten so far - http://jsfiddle.net/lecollective/htuUZ/3/

 

But the issues i'm having are:

 

  1. when the rectangle flickers it reveals the text on each flicker
  2. when it slides back left I can't get it to slide with the #main to reveal the website
  3. or flicker at the end.

Any insight into this would be really appreciated!

Just had a brief look but I think this will help you in the right direction.

1. Change the css for your #text from

 

display:none;
 

 

to

 

 visibility:hidden;
 

 

2. You have set your #main to not being displayed in the css but you do not have any js code to show it when the animation is done.

3. I guess you need to repeat the opacity transform again (from the beginning og your code) or put it in a function and call it when the code is complete

  • Author

Just had a brief look but I think this will help you in the right direction.

1. Change the css for your #text from

 

display:none;
 

 

to

 

 visibility:hidden;
 

 

2. You have set your #main to not being displayed in the css but you do not have any js code to show it when the animation is done.

3. I guess you need to repeat the opacity transform again (from the beginning og your code) or put it in a function and call it when the code is complete

Hello, thank you for your reply. Yes I'm currently hiding this until I get the first part of the animation correct, I need to resolve the flashing text issue first

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.