Skip to content
This repository has been archived by the owner on Dec 28, 2021. It is now read-only.

ms-fadaei/vue-lazy-aparat

Repository files navigation

Vue Lazy Aparat

Work In Progress

install

yarn add vue-lazy-aparat # npm i vue-lazy-aparat

Usage

import LazyAparat from 'vue-lazy-aparat'
@import 'vue-lazy-aparat/dist/style.css';

Props

cover: {
  type: String,
  required: false,
  default: undefined,
},
coverFit: {
  type: String,
  required: false,
  default: 'cover',
},
videoHash: {
  type: String,
  required: true,
},
videoCaption: {
  type: String,
  required: false,
  default: '',
},
videoDuration: {
  type: String,
  required: false,
  default: '',
},
aspectRatio: {
  type: String,
  required: false,
  default: '16:9',
},
allowFullScreen: {
  type: Boolean,
  required: false,
  default: true,
},
mode: {
  type: String,
  required: false,
  default: 'cover',
},

Run The Playground

  1. Clone the repository
  2. Install dependencies
yarn install # or npm install
  1. Run dev
yarn dev # or npm run dev