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
  • 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?

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, Lightbox Studio plugin
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

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.