I tried using background-image
in css for the button background, but that only works for images and doesn’t work for videos. So, are there any way to put a video as the background of the button? I’m trying to make a button with a looped muted video as the background.
2
Answers
One way to do it is by using HTML5 element and absolute positioning within a container that acts as your button. Replace "your-video-file.mp4" with the path to your video file.