Jump to content

How to add time delay to certain blocks?

Recommended Posts

Site URL: https://dalmatian-piccolo-3aby.squarespace.com

Hi there!

I am wondering how to add code for a time delay to certain blocks on my company's website. 

As I understand from my internet research I need to use javascript for this but I'm struggling to know exactly how to get this to work:

For example, on this page: 

https://dalmatian-piccolo-3aby.squarespace.com/kosher-continued

Password: ticonderoga5

I have two text blocks set diagonally from each other. I would like the one on the left to appear immediately, and the one on the right to appear a few seconds later. 

Thank you for any help!!!

 

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Add to Design > custom CSS

/* Show text after 5 seconds */
div#block-yui_3_17_2_1_1624479847598_2131 {
	animation: changeopa 4s linear 1s forwards;
  opacity: 0;
}
@keyframes changeopa {
  0% {opacity: 0;}
 100% {opacity: 1;}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.