"," Last, but not least."," To make all described above really work, you need to include impress.js in the page."," I strongly encourage to minify it first."," In here I just include full source of the script to make it more readable."," You also need to call a `impress().init()` function to initialize impress.js presentation."," And you should do it in the end of your document. Not only because it's a good practice, but also"," because it should be done when the whole document is ready."," Of course you can wrap it in any kind of \"DOM ready\" event, but I was too lazy to do so ;)","",""," The `impress()` function also gives you access to the API that controls the presentation."," Just store the result of the call:"," var api = impress();"," and you will get three functions you can call:"," `api.init()` - initializes the presentation,"," `api.next()` - moves to next step of the presentation,"," `api.prev()` - moves to previous step of the presentation,"," `api.goto( stepIndex | stepElementId | stepElement, [duration] )` - moves the presentation to the step given by its index number"," id or the DOM element; second parameter can be used to define duration of the transition in ms,"," but it's optional - if not provided default transition duration for the presentation will be used."," You can also simply call `impress()` again to get the API, so `impress().next()` is also allowed."," Don't worry, it won't initialize the presentation again."," For some example uses of this API check the last part of the source of impress.js where the API"," is used in event handlers.","",""," Now you know more or less everything you need to build your first impress.js presentation, but before"," you start..."," Oh, you've already cloned the code from GitHub?"," You have it open in text editor?"," Stop right there!"," That's not how you create awesome presentations. This is only a code. Implementation of the idea that"," first needs to grow in your mind."," So if you want to build great presentation take a pencil and piece of paper. And turn off the computer."," Sketch, draw and write. Brainstorm your ideas on a paper. Try to build a mind-map of what you'd like"," to present. It will get you closer and closer to the layout you'll build later with impress.js."," Get back to the code only when you have your presentation ready on a paper. It doesn't make sense to do"," it earlier, because you'll only waste your time fighting with positioning of useless points."," If you think I'm crazy, please put your hands on a book called \"Presentation Zen\". It's all about "," creating awesome and engaging presentations."," Think about it. 'Cause impress.js may not help you, if you have nothing interesting to say."," Are you still reading this?"," For real? I'm impressed! "," But now, take my advice and take some time off. Make yourself a cup of coffee, tea,"," or anything you like to drink."," Cheers!","Footer","\n © 2024 GitHub, Inc.\n ","Footer navigation","Terms","Privacy","Status","Docs","Kontakt","\n Manage cookies\n ","\n Do not share my personal information\n ","\n You can’t perform that action at this time.\n "]}
Skip to content

Latest commit

 

History

History
469 lines (331 loc) · 20.2 KB

index.html

File metadata and controls

469 lines (331 loc) · 20.2 KB