Skip to content

Polymer 2.0 based custom-element to display video with parallax effect and overlays.

License

Notifications You must be signed in to change notification settings

PFElements/pf-parallax-video

Repository files navigation

pf-elements

A Polymer 2.0 based collection of reusable web components

Join the chat at https://gitter.im/pf-elements/Lobby Published on webcomponents.org Polymer Version

Demo

Click here for Demo

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your application locally.

PF Parallax Video

A Polymer 2.0 based custom-element to display video with parallax effect and overlays.

Element Name Latest Version (Bower) Npm version Build Status
pf-parallax-video GitHub version npm version Build Status

Learn more

See the list of elements, demos, and documentation by browsing this collection on webcomponents.org:


#Usage

`<pf-parallax-video id="pf-parallax" title="PF PARALLAX VIDEO" videoposter="/media/poster.PNG" src1="../media/main.mp4" parallaxvalue="0.30"

`

Custom property Description Default
--pf-parallax-video-height Height of video div 500px
--on-pause-video-fade-color A transprent color when video is paused rgba(0,0,0,.85)
--overlay-pattren-img A pattren image on video media/imgs/pattren.png
--pause-button-img Video Pause button image url(media/imgs/ic_pause.png) left top no-repeat
--play-button-img Video Play button image media/imgs/ic_play.png) left top no-repeat
--title-heading-disply 'none' if you want to hide heading block
--title-heading-bg Background color of heading rgba(0,0,0,.5)
--title-text-color Heading text color #fff

###Inline Demo

<pf-parallax-video id="pf-parallax"
                     title="PF PARALLAX VIDEO"
                     videoposter="/media/poster.PNG"
                     src1="../media/main.mp4"
                     parallaxvalue="0.30"
  ></pf-parallax-video>

###Known Issues Google Chrome doesn't catch any videos over 5MB so if your video is above 5mb ,it resulted redownload the video in loop

Viewing Your Application

$ polymer serve

Building Your Application

$ polymer build

This will create a build/ folder with bundled/ and unbundled/ sub-folders containing a bundled (Vulcanized) and unbundled builds, both run through HTML, CSS, and JS optimizers.

You can serve the built versions by giving polymer serve a folder to serve from:

$ polymer serve build/bundled

Running Tests

$ polymer test

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.

Contributing

Comments, questions, suggestions, issues, and pull requests are all welcome.

Get in touch with the team

Joing us at Join the chat at https://gitter.im/pf-elements/Lobby

Some ways to help:

  • Test the elements and provide feedback: We would love to hear your feedback on anything related to the elements, like features, API and design. The best way to start is by trying them out. And to get a quick response, either drop a question/comment on the chat or open an issue in GitHub.
  • Report bugs: File issues for the elements in their respective GitHub projects.
  • Send pull requests: If you want to contribute code, check out the development instructions below.

We encourage you to read the contribution instructions by GitHub also.

License

MIT License

About

Polymer 2.0 based custom-element to display video with parallax effect and overlays.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages