0.1.2 • Published 7 years ago

vue-video-background v0.1.2

Weekly downloads
18
License
MIT
Repository
github
Last release
7 years ago

vue-video-background

npm version

A Vue component for a full width video background.

This package is in active development. Feel free to contribute. If you have any problems please open an issue on Github.

Usage

  1. Install via npm

npm install --save vue-video-background

  1. Import the component

import VueVideoBackground from 'vue-video-background'

  1. Use the component

You must at least give the videoSrc-prop.

<vue-video-background videoSrcWebm="path/to/your/video/file.webm"></vue-video-background>

Source file can be .webm or mp4 or specify both types for greater browser support. Webm will always be used first.

Settings

OptionTypeDefaultDescription
videoSrcWebmstring''The path to your .webm video source.
videoSrcMp4string''The path to your .mp4 video source.
posterstring''Path to preview image. Will be replaced by video once it loads.
textOverlaybooleanfalseWhether to show a text overlay or not.
textHeadlinestring''The Headline for your text overlay. Will be in h1-tags.
textSubtitlestring''The Subtitle for your text overlay. Will be in h2-tags.
textBodystring''The text for your text overlay. Will be in p-tags.
0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.1

7 years ago