Jump to content

Delay Load Time of Text Boxes by 2 Seconds

Go to solution Solved by Beyondspace,

Recommended Posts

I'd like to apply a 2-second delay for when a couple text boxes load onto the page.

How do I have a 2-second delay applied to the circled blocks?
#block-yui_3_17_2_1_1712594122466_4852
#block-yui_3_17_2_1_1712937226300_14646

Thank you!

image.thumb.png.e0a2e8b764513ad1d0e6b1e0dcf3865a.png

Link to comment
15 hours ago, Crumpy said:

I'd like to apply a 2-second delay for when a couple text boxes load onto the page.

How do I have a 2-second delay applied to the circled blocks?
#block-yui_3_17_2_1_1712594122466_4852
#block-yui_3_17_2_1_1712937226300_14646

Thank you!

image.thumb.png.e0a2e8b764513ad1d0e6b1e0dcf3865a.png

Can you share your URL so I can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • Solution
Posted (edited)

Try the following Css

#block-yui_3_17_2_1_1712594122466_4852,#block-yui_3_17_2_1_1712937226300_14646 {
  animation: 0.5s fadeIn;
  animation-fill-mode: forwards;
  animation-delay: 2s;
  visibility: hidden;
  opacity: 0;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    visibility: hidden;

  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

This is just a basic approach that is not efficient in case you set the effect on not-in-view elements. 

The javascript can make it work better (only when the element is in viewpoint, it runs this effect

Edited by Beyondspace

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.