Jump to content

Need my Video to stop resizing on loading the page

Recommended Posts

Using custom code I have been able to round the corners of videos on my site, as I don't want them to be square. 

I'm using this: 

.video-player .plyr video {
    object-fit: cover !important;
    border-radius: 10px !important;
}

But every time I load the page the video keeps glitching by defaulting to the original square layout for a second and then resizing to the rounded version. 

Is there any CSS code I could try to stop this from happening? So that the video doesn't readjust every time, I refresh. 

Link to comment
  • Replies 1
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.