https://github.com/afeiship/react-full-video
Full page background video for react.
https://github.com/afeiship/react-full-video
background bg full image react video
Last synced: 2 months ago
JSON representation
Full page background video for react.
- Host: GitHub
- URL: https://github.com/afeiship/react-full-video
- Owner: afeiship
- License: mit
- Created: 2019-02-17T10:54:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-03-31T15:17:14.000Z (about 3 years ago)
- Last Synced: 2025-03-09T08:40:05.605Z (3 months ago)
- Topics: background, bg, full, image, react, video
- Language: JavaScript
- Homepage:
- Size: 71.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# react-full-video
> Full page background video for react.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```shell
npm install -S @jswork/react-full-video
```## videos
- https://lofter.lf127.net/1611802866186/JWmeidangyeshenrenjingtayufangjiankuishixingchen.mp4
- https://lofter.lf127.net/1611821341381/jwhaideyanjing~1.mp4## usage
1. import css
```scss
@import "~@jswork/react-full-video/dist/style.css";// or use sass
@import "~@jswork/react-full-video/dist/style.scss";// customize your styles:
$react-full-video-options: ()
```
2. import js
```js
import React from 'react';
import ReactFullVideo from '@jswork/react-full-video';
import '../../src/components/style.scss';
import styled from 'styled-components';const Container = styled.div`
padding: 0;
margin: 0;
height: 100%;
.card {
position: absolute;
width: 400px;
height: 220px;
background: #fff;
padding: 20px;
box-shadow: rgb(0 0 0 / 16%) 0px 3px 10px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
`;export default (props: any) => {
return (
A nice login ui.
);
};```
## preview
- https://afeiship.github.io/react-full-video/## license
Code released under [the MIT license](https://github.com/afeiship/react-full-video/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/react-full-video
[version-url]: https://npmjs.org/package/@jswork/react-full-video[license-image]: https://img.shields.io/npm/l/@jswork/react-full-video
[license-url]: https://github.com/afeiship/react-full-video/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/react-full-video
[size-url]: https://github.com/afeiship/react-full-video/blob/master/dist/react-full-video.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/react-full-video
[download-url]: https://www.npmjs.com/package/@jswork/react-full-video