An open API service indexing awesome lists of open source software.

https://github.com/frnt-end/react-responsive-video

⚛️ React Project - How to create Full screen & responsive video background in REACT - How to guide tutorial 👉 https://frnt-end.github.io/React-Responsive-Video/
https://github.com/frnt-end/react-responsive-video

background css css3 easy engineer frontend fullscreen how-to html html5 mp4-video object-fit react reactjs responsive simple tag tutorial video

Last synced: 5 months ago
JSON representation

⚛️ React Project - How to create Full screen & responsive video background in REACT - How to guide tutorial 👉 https://frnt-end.github.io/React-Responsive-Video/

Awesome Lists containing this project

README

          

# Full Screen Responsive Video in React.js

Simple and fast way to make a background video in React
:point_right: [Watch DEMO](https://frnt-end.github.io/React-Responsive-Video/)

## Start

Add your video file and import it, in this case, we added a file named 'vid-bg.mp4' inside a directory called 'video':

##### `import BgVideo from './video/vid-bg.mp4';`

Now we will embed the video using the `` html tag:

##### ` `

## Finish

Our last step is setting the **CSS style**:

##### `.bg-vid { position: fixed; width: 100%; height: 100%; object-fit: cover; z-index: 0; }`

***

##### And that's it! no third party and no packages.. :statue_of_liberty:

***

### Learn More

In this little project, we customized the video to play automatically, in a loop and without sound. for further customization and more information, visit: [w3-tag-video](https://www.w3schools.com/tags/tag_video.asp)

### License

Copyright © 2015 @frnt-end
[nirit.website](https:///nirit.website)

[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)