| R | | U | | B | | A | | N |
$ bower install ruban --save
<!DOCTYPE html>
<html>
<head>
<title>I <3 Ruban</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="bower_components/normalize-css/normalize.css" />
<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" href="bower_components/highlightjs/styles/tomorrow.css" />
<link rel="stylesheet" href="bower_components/ruban/css/ruban.min.css" />
<link rel="stylesheet" href="bower_components/ruban/css/ruban-print.min.css" media="print" />
</head>
<body>
<section>
<h1>My Awesome Presentation</h1>
</section>
<script src="bower_components/jquery/jquery.min.js"></script>
<script src="bower_components/keymaster/keymaster.js"></script>
<script src="bower_components/hammerjs/hammer.min.js"></script>
<script src="bower_components/highlightjs/highlight.pack.js"></script>
<script src="bower_components/ruban/js/ruban.min.js"></script>
<script>
new Ruban();
</script>
</body>
</html>
<section id="getting-started-sections">
<h1>Getting started</h1>
<ul>
<li>Slides are just <sections></li>
<li>Fill these sections with HTML</li>
<li>Open your browser and enjoy!</li>
</ul>
</section>
<section class="toc">
</section>
<section>
<h1>First title</h1>
</section>
<section>
<h1>Second title</h1>
</section>
<section id="about-dinosaurs">
<h1>About dinosaurs</h1>
</section>
new Ruban({
pagination: true
});
<section>
<h1>Steps</h1>
<ul class="steps">
<li>Make your point</li>
<li>Step by step</li>
</ul>
</section>
new Ruban({
ratio: 16/9
});
$('#events').on({
active: function() {
$(this).find('h1').stop()
.animate({marginLeft: '2em'}, 2000);
},
inactive:function() {
$(this).find('h1').stop()
.animate({marginLeft: 0});
}
});
<details open="open">
<summary>Notes</summary>
<p>
You can write down your comments here.
They will be available in the printed version.
</p>
</details>
You can write down your comments here. They will be available in the printed version.
Pass options to the constructor
var ruban = new Ruban({
ratio: 16/9,
pagination: true
});
$ git://github.com/loicfrering/ruban.git && cd ruban/
$ npm install -g grunt-cli
$ npm install
$ bower install
$ grunt