由Hakim El Hattab / @hakimel制作
reveal.js让你可以使用HTML创建一个漂亮的交互式幻灯片,这个演示文稿展示了它的效果。
某些幻灯片可以包含在某张幻灯片竖直下方。
使用Space键可以遍历所有的幻灯片。
下方的幻灯片通常用来对顶层幻灯片做进一步的说明。
好了,到底了。
如果你不懂代码也不要紧,我们提供了一个全功能的在线可视化编辑器——http://slides.com.
按ESC键可以进入幻灯片总览视图。
按住alt键并点击幻灯片上的任意元素可以对它进行放大(此处使用了zoom.js),Alt + 点击任意位置可以恢复原状。
对触摸设备支持的很好,可以通过滑动控制幻灯片。
点击Hit the next arrow...
... to step through ...
... a fragmented slide.
有以下几种不同的样式:
grow
shrink
fade-out
fade-up (also down, left and right!)
current-visible
Highlight red blue green
你可以选择使用不同的过渡效果,包括:
None -
Fade -
Slide -
Convex -
Concave -
Zoom
reveal.js包含一些内置的主题:
Black (default) -
White -
League -
Sky -
Beige -
Simple
Serif -
Blood -
Night -
Moon -
Solarized
设置幻灯片 data-background="#dddddd"
可以改变背景颜色。支持所有的CSS颜色格式。
<section data-background="image.png">
<section data-background="image.png" data-background-repeat="repeat" data-background-size="100px">
<section data-background-video="video.mp4,video.webm">
通过backgroundTransition选项可以设置不同的背景切换效果,现在使用的叫做"zoom"。
Reveal.configure({ backgroundTransition: 'zoom' })
你可以在每张幻灯片上使用不同的背景切换效果。
<section data-background-transition="zoom">
function linkify( selector ) {
if( supports3DTransforms ) {
var nodes = document.querySelectorAll( selector );
for( var i = 0, len = nodes.length; i < len; i++ ) {
var node = nodes[i];
if( !node.className ) {
node.className += ' roll';
}
}
}
}
使用highlight.js实现了代码高亮。
Item | Value | Quantity |
---|---|---|
Apples | $1 | 7 |
Lemonade | $2 | 18 |
Bread | $3 | 2 |
These guys come in two forms, inline:
“The nice thing about standards is that there are so many to choose from”
and block:
“For years there has been a theory that millions of monkeys typing at random on millions of typewriters would reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.”
你可以将两张幻灯片链接在一起, 就像这样。
There's a speaker view. It includes a timer, preview of the upcoming slide as well as your speaker notes.
Press the S key to try it out.
演示文稿可以被导出为PDF, 下面是一个示例:
Set data-state="something"
on a slide and "something"
will be added as a class to the document element when the slide is open. This lets you
apply broader style changes, like switching the page background.
Additionally custom events can be triggered on a per slide basis by binding to the data-state
name.
Reveal.addEventListener( 'customevent', function() {
console.log( '"customevent" has fired' );
} );
按下键盘上的B或.可以暂停,This is helpful when you're on stage and want to take distracting slides off the screen.