Skip to content

viniciusalmeida/ninja-presentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#<ninja-presentation>

A kit of Web Components wrappers to easily build a web based slideshow on Google Chrome. Attribute names are similar to the css properties. It is not an accident ;)

Do not be fooled. You do not have to be a ninja to use it! Let the tool work for you.

See the demo and do not forget to see your code.

##Usage with bower

To install:

$ bower install ninja-presentation

Import the custom element and your dependencies on your presentation page:

<script type="text/javascript" src="bower_components/platform/platform.js"></script>
<link rel="import" href="bower_components/polymer/polymer.html">
<link rel='import' href='bower_components/ninja-presentation/src/ninja-presentation.html'>

##Markup to use the component

Start the markup of you presentation:

<ninja-presentation>
	<ninja-slide>
		<h1>Is very simple, huh?</h1>
	</ninja-slide>
</ninja-presentation>

Maybe you need use a CSS reset. On example I used the * selector, but you can use the tool of your preference

###<ninja-presentation> options

Attribute Options Description
background string The default background of the presentation - Any value accepted by the CSS background property
font string The default font-family of the presentation
color string The default text color of the presentation
align string The default text-align of the presentation

###<ninja-slide> options

Attribute Options Description
background string The background on the slide - Any value accepted by the CSS background property
font string The font-family of the texts on the slide
color string The font color of the texts on the slide
align string The align of the texts on the slide

Using fragments

Add class="fragment" in elements to show one by one

<ninja-slide background='green' font='Port Lligat Slab' color='#FFF' align='center'>
    <h1>Fragments</h1>
    <ul>
        <li class="fragment">First fragment</li>
        <li class="fragment">Second fragment</li>
    </ul>
</ninja-slide>

Look this yeoman generator.


@ works on Chrome

Made by @vimoding

About

Do not be fooled. You do not have to be a ninja to use this toolkit for slides presentation!

Resources

Stars

Watchers

Forks

Packages

No packages published