Last active
October 16, 2022 12:20
-
-
Save theredstapler/f5cae51989b68dc73ae6 to your computer and use it in GitHub Desktop.
Source code of impress.js Tutorial by Red Stapler. View Tutorial at: https://redstapler.co/tutorials/make-presentation-impress-js/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<style> | |
body{ | |
background-color: #dfdfdf; | |
} | |
.box { | |
display: block; | |
width: 800px; | |
height: 600px; | |
padding: 30px 50px; | |
background-color: white; | |
box-shadow: 0 2px 6px rgba(0, 0, 0, .1); | |
border: 1px solid rgba(0, 0, 0, .3); | |
border-radius: 20px; | |
text-shadow: 0 2px 2px rgba(0, 0, 0, .1); | |
font-family: Arial, sans-serif; | |
font-size: 40px; | |
color: rgb(102, 102, 102); | |
} | |
</style> | |
</head> | |
<body> | |
<div id="impress"> | |
<div class="step box" data-x="0" data-y="0"> | |
<p>This is my first slide!!</p> | |
</div> | |
<div class="step box" data-x="0" data-y="1000"> | |
<p>This is my second slide!!</p> | |
</div> | |
<div class="step box" data-x="2000" data-y="1000"> | |
<p>This is my third slide!!</p> | |
</div> | |
</div> | |
<script src="js/impress.js"></script> | |
<script> | |
impress().init(); | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment