How to use Impress.js to write a ppt with force lattice

Source: Internet
Author: User

Overview

This is the summary and practiced hand that I study the course impress let your content "dance" to do.

You can click here to preview the PPT I made online

Note : When the load is finished, click the SPACEBAR to page!

Simplify templates

The following is a simplified template

<!doctype html>

This is my simplified template, the removal of some CSS loading, JS loading and comments related statements.

Of course, this template does not work, but it is clear to see the impress.js relevant syntax used

The first is the head head:

It is customary to add meta information and headings, just like normal HTML files.

Then the body part:

 <div id="impress">

The first one id="impress" div , which indicates impress the initialization of the relevant statements inside it;

 <div class="fallback-message"> Your browser doesn't support impress.js. Try Chrome or Safari. </div>

Then class="fallback-message" there is the callback function div , indicating that if the browser does not support the return of this information: Your browser doesn‘t support impress.js. Try Chrome or Safari. ;

 <div id="first" class="step" data-x="0" data-y="0" data-z="0" data-rotate="0" data-rotate-x="0" data-rotate-y="0" data-scale="0"> <p>This is my first slide. </p> </div>

Finally id="first" class="step" div , it means that this is a slide.

Explain the relevant parameters inside the slide statement:

    • id="first"This slide id can be customized to facilitate css file adjustment.
    • class="step"Indicates that this is a slide and must be written step .
    • data-xRepresents the X-axis offset of this slide, y and the z same is true.
    • data-rotateThis is the same as the amount of rotation of the slide, measurements said x y z .
    • data-scaleRepresents the amount of magnification for this slide.
Thinking

In fact impress.js , it is very simple to use, as long as a template can be used to modify the variables will be.

I personally think, although impress.js the slide on the switch motion effect is very hard and tall, but for the details of a single slide 1.1 points to write code, very troublesome, rather than using PowerPoint. So impress.js it is only suitable for the occasions that focus on the transition effect of slide, such as Business Summary report, online resume, etc.

How to use Impress.js to write a ppt with force lattice

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.