Convert Figma logo to code with AI

impress logoimpress.js

It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com.

37,618
6,672
37,618
68

Top Related Projects

67,545

The HTML Presentation Framework

7,595

The entrance repository of Markdown presentation ecosystem

12,681

A simple, in-browser, markdown-driven slideshow tool.

Create HTML presentations in seconds —

It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com.

Quick Overview

impress.js is a presentation framework based on the power of CSS3 transforms and transitions in modern browsers. It allows you to create stunning presentations with 3D effects, zooming, and rotating slides. The framework aims to make it easy for developers to create visually impressive and interactive presentations using HTML, CSS, and JavaScript.

Pros

  • Highly customizable and flexible, allowing for creative and unique presentations
  • Supports 3D transformations and transitions for visually striking effects
  • Lightweight and doesn't require external dependencies
  • Works well across modern browsers and devices

Cons

  • Steep learning curve for users not familiar with CSS3 transforms and transitions
  • May not be suitable for simple, traditional presentations
  • Limited built-in themes or templates, requiring more manual styling
  • Performance can be an issue on older devices or with complex presentations

Code Examples

  1. Creating a basic slide:
<div id="impress">
    <div class="step" data-x="0" data-y="0">
        <h1>Welcome to impress.js</h1>
        <p>This is your first slide.</p>
    </div>
</div>
  1. Adding 3D rotation to a slide:
<div class="step" data-x="1000" data-y="1500" data-rotate-x="45" data-rotate-y="45" data-z="1000">
    <h2>3D Rotation</h2>
    <p>This slide is rotated in 3D space.</p>
</div>
  1. Creating a zoom effect:
<div class="step" data-x="2000" data-y="0" data-scale="4">
    <h2>Zoom Effect</h2>
    <p>This slide appears zoomed in.</p>
</div>

Getting Started

  1. Include impress.js in your HTML file:
<script src="https://cdnjs.cloudflare.com/ajax/libs/impress.js/2.0.0/impress.min.js"></script>
  1. Create a container for your presentation:
<div id="impress">
    <!-- Your slides go here -->
</div>
  1. Initialize impress.js:
<script>
    impress().init();
</script>
  1. Create your slides using div elements with the step class:
<div class="step" data-x="0" data-y="0">
    <h1>Slide 1</h1>
</div>
<div class="step" data-x="1000" data-y="0">
    <h1>Slide 2</h1>
</div>
  1. Customize your slides using CSS and additional data attributes for positioning and effects.

Competitor Comparisons

67,545

The HTML Presentation Framework

Pros of reveal.js

  • More extensive documentation and examples
  • Built-in themes and easy customization options
  • Better support for mobile devices and touch interfaces

Cons of reveal.js

  • Less flexibility for complex, non-linear presentations
  • More limited 3D transformation capabilities

Code Comparison

reveal.js:

<div class="reveal">
  <div class="slides">
    <section>Slide 1</section>
    <section>Slide 2</section>
  </div>
</div>

impress.js:

<div id="impress">
  <div class="step" data-x="0" data-y="0">Slide 1</div>
  <div class="step" data-x="1000" data-y="0">Slide 2</div>
</div>

reveal.js uses a simpler structure with nested <section> elements, while impress.js requires more explicit positioning using data attributes.

reveal.js offers a more traditional slide-based approach, making it easier for beginners to create presentations quickly. impress.js provides greater freedom for creating non-linear, zooming presentations with complex transitions, but requires more effort to set up and customize.

Both libraries are popular choices for creating web-based presentations, with reveal.js being more suitable for conventional slideshows and impress.js excelling in creating unique, visually striking experiences.

7,595

The entrance repository of Markdown presentation ecosystem

Pros of Marp

  • Simpler, more intuitive syntax using Markdown
  • Built-in themes and customization options
  • Supports exporting to various formats (PDF, PPTX, HTML)

Cons of Marp

  • Less interactive and dynamic than Impress.js
  • Limited animation capabilities
  • Fewer advanced layout options

Code Comparison

Marp (Markdown):

---
theme: default
---

# Slide 1
Content for slide 1

---

# Slide 2
Content for slide 2

Impress.js (HTML):

<div id="impress">
    <div class="step" data-x="0" data-y="0">
        <h1>Slide 1</h1>
        <p>Content for slide 1</p>
    </div>
    <div class="step" data-x="1000" data-y="0">
        <h1>Slide 2</h1>
        <p>Content for slide 2</p>
    </div>
</div>

Summary

Marp offers a simpler, more straightforward approach to creating presentations using Markdown syntax. It's ideal for users who prefer a quick and easy way to create slides without complex animations or layouts. Impress.js, on the other hand, provides more advanced features for creating highly interactive and visually dynamic presentations, but requires more technical knowledge and setup.

12,681

A simple, in-browser, markdown-driven slideshow tool.

Pros of remark

  • Simpler to use, with Markdown-based slide creation
  • Better suited for text-heavy presentations
  • Supports presenter mode with speaker notes

Cons of remark

  • Less visually impressive than impress.js
  • Limited animation capabilities
  • Fewer customization options for slide transitions

Code Comparison

remark:

# Slide 1
This is a remark slide

---

# Slide 2
- Bullet point 1
- Bullet point 2

impress.js:

<div id="slide1" class="step">
    <h1>Slide 1</h1>
    <p>This is an impress.js slide</p>
</div>

<div id="slide2" class="step" data-x="1000" data-y="1500" data-scale="2">
    <h1>Slide 2</h1>
    <ul>
        <li>Bullet point 1</li>
        <li>Bullet point 2</li>
    </ul>
</div>

Summary

remark is a simpler, Markdown-based presentation tool that excels in creating text-heavy slides with ease. It offers presenter mode but lacks the visual flair and extensive animation options of impress.js. impress.js provides more creative freedom for slide design and transitions but requires more complex HTML and CSS setup. Choose remark for quick, content-focused presentations, and impress.js for visually stunning, highly customized slideshows.

Create HTML presentations in seconds —

Pros of WebSlides

  • More modern and actively maintained
  • Responsive design out-of-the-box
  • Easier to use for beginners with simpler syntax

Cons of WebSlides

  • Less flexibility for complex animations and transitions
  • Fewer customization options for advanced users
  • Limited to linear slide progression

Code Comparison

WebSlides:

<section>
  <div class="wrap">
    <h1>My Presentation</h1>
    <p>Welcome to WebSlides</p>
  </div>
</section>

impress.js:

<div id="impress">
  <div class="step" data-x="0" data-y="0" data-scale="1">
    <h1>My Presentation</h1>
    <p>Welcome to impress.js</p>
  </div>
</div>

WebSlides uses a simpler HTML structure with predefined classes, while impress.js requires more attributes for positioning and scaling. impress.js offers more control over slide placement and transitions but has a steeper learning curve. WebSlides is more straightforward for creating standard presentations, while impress.js excels in creating non-linear, highly customized presentations with complex animations.

It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com.

Pros of impress.js

  • Innovative approach to presentations using CSS3 transforms and transitions
  • Highly customizable and flexible for creating unique, non-linear presentations
  • Active community and ongoing development

Cons of impress.js

  • Steeper learning curve compared to traditional presentation tools
  • May not be suitable for all types of presentations or audiences
  • Performance can be an issue on older devices or browsers

Code Comparison

Both repositories refer to the same project, impress.js. Here's a sample of how to initialize an impress.js presentation:

impress().init();

To add a step (slide) in impress.js:

<div id="step-1" class="step" data-x="0" data-y="0">
    <h1>Welcome to impress.js</h1>
</div>

Summary

impress.js is a powerful JavaScript library for creating impressive presentations with 3D transitions and transformations. It offers a unique approach to slide-based content but may require more technical expertise to implement effectively. The library is well-maintained and continues to evolve, making it a popular choice for developers looking to create engaging, web-based presentations.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

impress.js

CircleCI

It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com.

WARNING

impress.js may not help you if you have nothing interesting to say ;)

HOW TO USE IT

Getting Started Guide

Check out our new Getting Started guide if you want a quick introduction to the project!

Direct download link to only impress.js

You can include this link directly inside of your HTML file in its header. If you want to learn how to do this, you can find a how-to in the Getting Started guide.

Getting Started Guide

Check out our new Getting Started guide if you want a quick introduction to the project!

Checking out and initializing the git repository

git clone --recursive https://github.com/impress/impress.js.git
cd impress.js

Note: For a minimal checkout, omit the --recursive option. This will leave out extra plugins.

Stable releases

New features and fixes are continuously merged into the master branch, which is what the above command will check out. For the latest stable release, see the Github Releases page.

Documentation

Reference documentation of core impress.js features and API you can find it in DOCUMENTATION.md.

The HTML source code of the official impress.js demo serves as a good example usage and contains comments explaining various features of impress.js. For more information about styling you can look into CSS code which shows how classes provided by impress.js can be used. Last but not least JavaScript code of impress.js has some useful comments if you are interested in how everything works. Feel free to explore!

Official demo

impress.js demo by @bartaz

Examples and demos

The Classic Slides demo is targeted towards beginners, or can be used as a template for presentations that look like the traditional PowerPoint slide deck. Over time, it also grew into the example presentation that uses most of the features and addons available.

More examples and demos can be found on Examples and demos wiki page.

Feel free to add your own example presentations (or websites) there.

Other tutorials and learning resources

If you want to learn even more there is a list of tutorials and other learning resources on the wiki, too.

There is also a book available about Building impressive presentations with impress.js by Rakhitha Nimesh Ratnayake.

You may want to check out the sibling project Impressionist: a 3D GUI editor that can help you in creating impress.js presentations.

Mailing list

You're welcome to ask impress.js related questions on the impressionist-presentations mailing list.

REPOSITORY STRUCTURE

  • index.html: This is the official impress.js demo, showcasing all of the features of the original impress.js, as well as some new plugins as we add them.
    • As already mentioned, this file is well commented and acts as the official tutorial.
  • examples/: Contains several demos showcasing additional features available.
    • Classic Slides is a simple demo that you can use as template if you want to create very simple, rectangular, PowerPoint-like presentations.
  • src/: The main file is src/impress.js. Additional functionality is implemented as plugins in src/plugins/.
  • test/: Contains QUnit and Syn libraries that we use for writing tests, as well as some test coverage for core functionality. (Yes, more tests are much welcome.) Tests for plugins are in the directory of each plugin.
  • js/: Contains js/impress.js, which contains a concatenation of the core src/impress.js and all the plugins. Traditionally this is the file that you'll link to in a browser. In fact both the demo and test files do exactly that.
  • css/: Contains a CSS file used by the demo. This file is not required for using impress.js in your own presentations. Impress.js creates the CSS it needs dynamically.
  • extras/ contains plugins that for various reasons aren't enabled by default. You have to explicitly add them with their own script element to use them.
  • build.js: Simple build file that creates js/impress.js. It also creates a minified version impress.min.js, but that one is not included in the github repository.
  • package.json: An NPM package specification. This was mainly added so you can easily install buildify and run node build.js. Other than the build process, which is really just doing roughly cat src/impress.js src/plugins/*/*.js > js/impress.js, and testing, impress.js itself doesn't depend on Node or any NPM modules.

WANT TO CONTRIBUTE?

For developers, once you've made changes to the code, you should run these commands for testing:

npm install
npm run all

Note that running firefox qunit_test_runner.html is usually more informative than running karma with npm run test. They both run the same tests.

More info about the src/ directory can be found in src/plugins/README.md.

Requirements

  • >= node 7.6
  • npm

ABOUT THE NAME

impress.js name is courtesy of @skuzniak.

It's an (un)fortunate coincidence that an Open/LibreOffice presentation tool is called Impress ;)

Reference API

See the Reference API

BROWSER SUPPORT

The design goal for impress.js has been to showcase awesome CSS3 features as found in modern browser versions. We also use some new DOM functionality, and specifically do not use jQuery or any other JavaScript libraries, nor our own functions, to support older browsers. In general, recent versions of Firefox and Chrome are known to work well. Reportedly IE now works too.

The typical use case for impress.js is to create presentations that you present from your own laptop, with a browser version you know works well. Some people also use impress.js successfully to embed animations or presentations in a web page, however, be aware that in this some of your visitors may not see the presentation correctly, or at all.

In particular, impress.js makes use of the following JS and CSS features:

COPYRIGHT AND LICENSE

Copyright 2011-2012 Bartek Szopka (@bartaz), 2016-2023 Henrik Ingo (@henrikingo) and 70+ other contributors

Released under the MIT License

NPM DownloadsLast 30 Days