Pages

Saturday, November 3, 2012

Creating simple HTML5 slide presentation with impress.js

With the recent growth of HTML5 adaption, I have seen many people using HTML slides instead of traditional Power Point/Open Office presentation.

You can download the impress.js and save in the "js" directory.

[sourcecode language="html"]
<html lang="en">
<head>
<title>Impress Demo</title>
</head>
<body>
<div id="impress">
<div class="step slide" id="start">
<p style='width:1000px;font-size:80px;
text-align:center'>Creating Stunning Visualizations</p>
<p>Impress.js </p>
</div>

<div class="step slide" id="slide2" data-x="-1200" data-y="0">
<p style='width:1000px;font-size:80px;'>
First Slide Moves From Left To Right</p>
<p>Impress.js </p>
</div>
</div>
<script type="text/javascript" src="js/impress.js"></script>
<script type="text/javascript">impress().init();</script>
</body>
</html>
[/sourcecode]

For more sophisticated slides can refer the code of this page.