Jump to content

Changing the homepage from a video animation when it is horizontal to a regular image when it is vertical like on mobile

Recommended Posts

Site URL: https://www.stonefishanimation.com/


I was hoping someone could help me out with code that makes it so when the homepage is viewed vertical, the video animation that plays normally will instead fade to a vertical image. I have attached the video and image below. When the video plays on vertical mobile, only a small portion is shown. The image below is in the vertical aspect ratio. Here is the link to the website: https://www.stonefishanimation.com/

Thank you so much 

- Stonefish Animation


Link to comment
  • Replies 1
  • Views 119
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Try adding to Design > Custom CSS

/* Mobile */
@media screen and (max-width:767px) {
[data-section-id="61c7807760e3d630052df709"] video {
    width: 100% !important;
    height: auto !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%,-50%) !important;


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (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.