Jump to content

Background video for desktop and mobile Views

Recommended Posts

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

1 hour ago, JayChampion said:

Site URL: http://www.theiceboxx.com

Site: www.theiceboxx.com

password: iceboxx

I am trying to get the attached video to fit properly within the desktop and mobile views. They both cut  off the video when uploaded. Any assistance is appreciated. Thank you in advance.

Werble-1BC732EFE-dsqz.mov

Try

@media only screen and (min-width: 768px) {
  section[data-section-id="625af59dd69eca1634ccd47a"]  .plyr__video-wrapper video {
    height: auto !important;
  }

  section[data-section-id="625af59dd69eca1634ccd47a"] {
    min-height: 200vh !important;
  }
}

Let me know how it works on your site

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, Keyword Highlighter
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
8 hours ago, JayChampion said:

thank you for your help. It definitely helped with the desktop view. Is there a way to make it fit the mobile view also? It seems to cut off the I and X in Iceboxx and part of the ice cubes on the left. Any assistance is appreciated.

Don't remove any code in your current code. Add this to Design > Custom CSS

/* Mobile video */
@media screen and (max-width:767px) {
[data-section-id="625af59dd69eca1634ccd47a"] video {
    width: 100% !important;
    height: auto !important;
}
[data-section-id="625af59dd69eca1634ccd47a"] {
    min-height: unset !important;
    height: 45vh;
}}

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 1 month later...
On 4/24/2022 at 6:16 PM, tuanphan said:

Don't remove any code in your current code. Add this to Design > Custom CSS

/* Mobile video */
@media screen and (max-width:767px) {
[data-section-id="625af59dd69eca1634ccd47a"] video {
    width: 100% !important;
    height: auto !important;
}
[data-section-id="625af59dd69eca1634ccd47a"] {
    min-height: unset !important;
    height: 45vh;
}}

 

Hey Tuanphan

I'm having a similar issue on one of my client sites: https://snail-gopher-y6jg.squarespace.com/ (pwd: lush)

I've tried the code you suggested above, modified the id and played around with the  measurements, but I can't get it to work! Would you mind please having a look? At the moment I added in a blank section above the bg video on the home page so that it didn't get cropped by the menu, and it works on desktop, but on mobile I get the black bars top and bottom.

There's a bg video on the videography page as well: https://snail-gopher-y6jg.squarespace.com/videography

Thank you!
Rae

Link to comment
3 hours ago, raestanton said:

Hey Tuanphan

I'm having a similar issue on one of my client sites: https://snail-gopher-y6jg.squarespace.com/ (pwd: lush)

I've tried the code you suggested above, modified the id and played around with the  measurements, but I can't get it to work! Would you mind please having a look? At the moment I added in a blank section above the bg video on the home page so that it didn't get cropped by the menu, and it works on desktop, but on mobile I get the black bars top and bottom.

There's a bg video on the videography page as well: https://snail-gopher-y6jg.squarespace.com/videography

Thank you!
Rae

Resize video + Make text over video

OR

Resize video + Make text under video (I think this will be better)

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.