Image with an SVG Placeholder

1 reply · opened Jan 20, 2022

MMaximM777Jan 20, 2022

Hi!
Please tell me how to set these parameters correctly. ![attachment](image.jpg)

The page has several sections with images of different formats.
viewBox='0 0 4 3' and viewBox='0 0 16 9' width="" height="" are not specified for these images.

Smooth Scrolling on the mobile version works as it should, but on the web it goes past the correct block. How can I fix this problem so that Smooth Scrolling stops on the right block both on the web version and on mobile? Would adding width="" height="" to each image fix this issue?

SSemicolon WebSTAFFJan 21, 2022

Hello,

The Placeholder SVG Image has a 4:3 Aspect Ratio. You can change the viewBox='0 0 4 3' Values according to your Image Dimensions and then set the Width/Height. This should also fix the issue with the Smooth Scroll. Else, you will need to activate repositioning of the Scroll Section Positions using JS, using the JS codes provided earlier. We checked out the JS Codes and it appears to be working for us.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard