Jump to content

Show different banner background video on mobile?

Recommended Posts

I current have a Vimeo video added to a banner on my website (added via Page Settings > Media > Video URL).

The video looks great on desktop, but on mobile the text is too wide for the mobile screen and so is chopped on each side.

Therefore I would like to add some custom code so that on mobile view, a different version of the video that I have produced that is mobile friendly (the text is stacked up more so it can fit the mobile width). I am comfortable with media queries, but am struggling the URL override.

I've done some digging around in the html and found this:

<iframe id="vimeoplayer" src="XXXXvideoURLXXXXX" style="width: 2112px; height: 1188px; left: -96px; top: -157px;" class="background-video ready"></iframe>

Which might be some use?

Any help appreciated.

Link to comment
  • 2 months later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 year later...

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.