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
  • Views 1k
  • Created
  • Last Reply

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.