web-presentation
A presentation framework created with web components
- Lightweight
- No dependencies
- Modular
- Extendable
Example
http://christiankohler.github.io/web-presentation/
Plunks
Try web-presentation ..
http://plnkr.co/edit/uU2lbg?p=preview
http://plnkr.co/edit/rTH17v?p=preview
Getting Started
Install web-presentation with npm
npm i web-presentation
Get web-presentation via bower
bower install web-presentation
Include the dist/web-presentation.html
file in your project.
<link rel="import" href="web-presentation.html">
Use the web slide component in your html file.
web-presentation Pure Webcomponents Presentation Framework Native, fast, extendable ..and only one file to import
API
Components
Component | Description |
---|---|
web-presentation |
The presentation element which contains all slides |
web-slide |
The slide element has to be within a web-presentation element |
web-slide-title |
The title is the same element as web-slide. The idea is to make it easier to style all title slide |
web-presentation-keyboardcontrols |
One way to control the presentation. Use left and right arrow keys or space to go to the next slide |
web-presentation-progress |
Displays a progress bar on the bottom of the screen |
Transitions
Usage:
Available transitions:
- fall
- moveFromTop
- moveToLeft
- moveFromBottom
- newspaper
- fadeIn
- fadeInFromTop
- fadeInFromBottom
If you want to add a transitions to this library please make a pull-request.
Fragments
Show parts of a slide step by step.
Show:
First Last Second
Hide:
Hide me
Mixed:
<!-- step1:shows p1 / step2:shows p2 / step3:hides div1 and shows div2--> Show first Show second Show after
Run local demo
- Install local dev dependencies:
npm install
- Run gulp
gulp
Requirements
Use Chrome 36 or higher to use web-presentation without a polyfill.
Contribute
Help make web-presentation better.
- Install local dev dependencies:
npm install
- Run gulp watch task:
gulp
- Edit src files