Jump to content

Black lines appearing on sides of <video> block code injection on scroll

Recommended Posts

I am attempting to autoplay embedded videos on my site with a seamless background. I am noticing black lines surround the videos on scroll and wondering how to get these to disappear.

Code Below:

<video style="width: 100%" autoplay muted
  playsinline loop controlsList="nodownload"
  src="https://dove-sunflower-pjxg.squarespace.com/s/EV-handpress.mp4">
    <source type="video/mp4" src="https://dove-sunflower-pjxg.squarespace.com/s/EV-handpress.mp4">
  <body oncontextmenu="return false;">
</video>

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

Top Posters In This Topic

Top Posters In This Topic

12 hours ago, dmartin said:

I am attempting to autoplay embedded videos on my site with a seamless background. I am noticing black lines surround the videos on scroll and wondering how to get these to disappear.

Code Below:

<video style="width: 100%" autoplay muted
  playsinline loop controlsList="nodownload"
  src="https://dove-sunflower-pjxg.squarespace.com/s/EV-handpress.mp4">
    <source type="video/mp4" src="https://dove-sunflower-pjxg.squarespace.com/s/EV-handpress.mp4">
  <body oncontextmenu="return false;">
</video>

Can you share your site with the protected password so I can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.