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

Top Posters In This Topic

Popular Days

  • Solution
Posted (edited)
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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, 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.