Site logo

Archived topic

SVG Hero Animation

9 replies · Started by Graham on March 9, 2022

Viewing posts 1–10 of 10

Hello,

I wanted to add a SVG bg to the hero section of one of my pages. I have the animated .svg file. How should I go about doing this?

I want the animation to be contained in the hero section. I saw that you can do this via CSS

background-size: contain;

Just dont know where to place this

In your case, set the background image to the first container is the way to go.

But you might want to make the container width/height ratio to match the SVG's aspect ratio.

Try tweak the top/bottom padding for the first container using % as the unit.

thx it seems to work

Glad to hear that :)

thx

This archived topic is closed to new replies.