Jump to content

Scroll reveal not working for SVG in code block

Go to solution Solved by Beyondspace,

Recommended Posts

I have added a code block to each section of the page containing text and an SVG image. It looks like this:  PROJECT ->

The scroll reveal fade-in that Squarespace applies site wide is working on the text "PROJECT" but not on the arrow. 

To replicate:

Go to: https://dog-garlic-lcth.squarespace.com/work

Scroll down quickly 

Expected: all content fades in 

Actual: the white arrows are already in place

 

I'm assuming there's a class that I can give to the SVG that will include it in the elements that the scroll reveal effect is applying to? Or perhaps there's another solution?

Help gratefully appreciated!

Screenshot 2023-03-02 at 11.07.46.png

Link to comment
  • Replies 2
  • Views 478
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

  • Solution
3 hours ago, BenjyB said:

I have added a code block to each section of the page containing text and an SVG image. It looks like this:  PROJECT ->

The scroll reveal fade-in that Squarespace applies site wide is working on the text "PROJECT" but not on the arrow. 

To replicate:

Go to: https://dog-garlic-lcth.squarespace.com/work

Scroll down quickly 

Expected: all content fades in 

Actual: the white arrows are already in place

 

I'm assuming there's a class that I can give to the SVG that will include it in the elements that the scroll reveal effect is applying to? Or perhaps there's another solution?

Help gratefully appreciated!

Screen Recording 2023-03-02 at 11.06.26.mov

Screenshot 2023-03-02 at 11.07.46.png

You can try the following code on Home > Design > Custom Css to fix it

.arrow-child.preFade + .custom-arrow.arrow-child {
  opacity: 0;
  transition-property: opacity;
  transition-timing-function: ease;
  transition-duration: 1.5s;
  transition-delay: 0.167647s;
}

.arrow-child.preFade.fadeIn:not([data-override-initial-global-animation]) + .custom-arrow.arrow-child {
  opacity: 1 ; 
}

Support me by pressing 👍  or marking as solution if this useful for you

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.