Home > Back-end >  How would i insert a mp4 as a background in react js
How would i insert a mp4 as a background in react js

Time:12-06

Need help trying to add the video as a background

CodePudding user response:

You could use the video tag and change the element size to what you need. Check this link.

CodePudding user response:

you need to import the gif :

import bg from "./config/images/bg.gif";

image={CONFIG.SHO_BACKGROUND ? bg : null}
  • Related