# reveal.js [![Build Status](https://travis-ci.org/hakimel/reveal.js.png?branch=master)](https://travis-ci.org/hakimel/reveal.js)
A framework for easily creating beautiful presentations using HTML. [Check out the live demo](http://lab.hakim.se/reveal-js/).
reveal.js comes with a broad range of features including [nested slides](https://github.com/hakimel/reveal.js#markup), [markdown contents](https://github.com/hakimel/reveal.js#markdown), [PDF export](https://github.com/hakimel/reveal.js#pdf-export), [speaker notes](https://github.com/hakimel/reveal.js#speaker-notes) and a [JavaScript API](https://github.com/hakimel/reveal.js#api). It's best viewed in a browser with support for CSS 3D transforms but [fallbacks](https://github.com/hakimel/reveal.js/wiki/Browser-Support) are available to make sure your presentation can still be viewed elsewhere.
#### More reading in the Wiki:
- [Changelog](https://github.com/hakimel/reveal.js/wiki/Changelog): Up-to-date version history.
- [Examples](https://github.com/hakimel/reveal.js/wiki/Example-Presentations): Presentations created with reveal.js, add your own!
- [Browser Support](https://github.com/hakimel/reveal.js/wiki/Browser-Support): Explanation of browser support and fallbacks.
## rvl.io
Slides are written using HTML or markdown but there's also an online editor for those of you who prefer a more traditional user interface. Give it a try at [www.rvl.io](http://www.rvl.io).
## Instructions
### Markup
Markup hierarchy needs to be ``<div class="reveal"> <div class="slides"> <section>`` where the ``<section>`` represents one slide and can be repeated indefinitely. If you place multiple ``<section>``'s inside of another ``<section>`` they will be shown as vertical slides. The first of the vertical slides is the "root" of the others (at the top), and it will be included in the horizontal sequence. For example:
```html
<div class="reveal">
<div class="slides">
<section>Single Horizontal Slide</section>
<section>
<section>Vertical Slide 1</section>
<section>Vertical Slide 2</section>
</section>
</div>
</div>
```
### Markdown
It's possible to write your slides using Markdown. To enable Markdown, add the ```data-markdown``` attribute to your ```<section>``` elements and wrap the contents in a ```<script type="text/template">``` like the example below.
This is based on [data-markdown](https://gist.github.com/1343518) from [Paul Irish](https://github.com/paulirish) which in turn uses [showdown](https://github.com/coreyti/showdown/). Sensitive to indentation (avoid mixing tabs and spaces) and line breaks (avoid consecutive breaks).
```html
<section data-markdown>
<script type="text/template">
## Page title
A paragraph with some text and a [link](http://hakim.se).
</script>
</section>
```
#### External Markdown
You can write your content as a separate file and have reveal.js load it at runtime. Note the separator arguments which determine how slides are delimited in the external file.
```html
<section data-markdown="example.md" data-separator="^\n\n\n" data-vertical="^\n\n"></section>
```
### Configuration
At the end of your page you need to initialize reveal by running the following code. Note that all config values are optional and will default as specified below.
```javascript
Reveal.initialize({
// Display controls in the bottom right corner
controls: true,
// Display a presentation progress bar
progress: true,
// Push each slide change to the browser history
history: false,
// Enable keyboard shortcuts for navigation
keyboard: true,
// Enable the slide overview mode
overview: true,
// Vertical centering of slides
center: true,
// Loop the presentation
loop: false,
// Change the presentation direction to be RTL
rtl: false,
// Number of milliseconds between automatically proceeding to the
// next slide, disabled when set to 0, this value can be overwritten
// by using a data-autoslide attribute on your slides
autoSlide: 0,
// Enable slide navigation via mouse wheel
mouseWheel: false,
// Apply a 3D roll to links on hover
rollingLinks: true,
// Transition style
transition: 'default', // default/cube/page/concave/zoom/linear/fade/none
// Transition speed
transitionSpeed: 'default', // default/fast/slow
});
```
Note that the new default vertical centering option will break compatibility with slides that were using transitions with backgrounds (`cube` and `page`). To restore the previous behavior, set `center` to `false`.
The configuration can be updated after initialization using the ```configure``` method:
```javascript
// Turn autoSlide off
Reveal.configure({ autoSlide: 0 });
// Start auto-sliding every 5s
Reveal.configure({ autoSlide: 5000 });
```
### Presentation Size
All presentations have a normal size, that is the resolution at which they are authored. The framework will automatically scale presentations uniformly based on this size to ensure that everything fits on any given display or viewport.
See below for a list of configuration options related to sizing, including default values:
```javascript
Reveal.initialize({
...
// The "normal" size of the presentation, aspect ratio will be preserved
// when the presentation is scaled to fit different resolutions. Can be
// specified using percentage units.
width: 960,
height: 700,
// Factor of the display size that should remain empty around the content
margin: 0.1,
// Bounds for smallest/largest possible scale to apply to content
minScale: 0.2,
maxScale: 1.0
});
```
### Dependencies
Reveal.js doesn't _rely_ on any third party scripts to work but a few optional libraries are included by default. These libraries are loaded as dependencies in the order they appear, for example:
```javascript
Reveal.initialize({
dependencies: [
// Cross-browser shim that fully implements classList - https://github.com/eligrey/classList.js/
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
// Interpret Markdown in <section> elements
{ src: 'plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
// Syntax highlight for <code> elements
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
// Zoom in and out with Alt+click
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
// Speaker notes
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } },
// Remote control your reveal.js presentation using a touch device
{ src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
```
You can add your own extensions using the same syntax. The following properties are available for each dependency object:
- **src**: Path to the script to load
- **async**: [optional] Flags if the script should load after reveal.js has started, defaults to false
- **callback**: [optional] Function to execute when the script has loaded
- **condition**: [optional] Function which must return true for the script to be loaded
### API
The ``Reveal`` class provides a minimal JavaScript API for controlling navigation and reading state:
```javascript
// Navigation
Reveal.slide( indexh, indexv, indexf );
Reveal.left();
Reveal.right();
Reveal.up();
Reveal.down();
Reveal.prev();
Reveal.next();
Reveal.prevFragment();
Reveal.nextFragment();
Reveal.toggleOverview();
// Retrieves the previous and current slide elements
Reveal.getPreviousSlide();
Reveal.getCurrentSlide();
Reveal.getIndices(); // { h: 0, v: 0 } }
```
### States
If you set ``data-state="somestate"`` on a slide ``<section>``, "somestate" will be applied as a class on the document elemen
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
This_R_package_contains_all_extern (1275个子文件)
bootstrap.css 135KB
bootstrap.min.css 120KB
cosmo.bootstrap.min.css 120KB
bootstrap.css 115KB
bootstrap.min.css 96KB
default.css 37KB
reveal.css 33KB
reveal.min.css 25KB
screen.css 21KB
impress-demo.css 21KB
bootstrap-responsive.css 21KB
ui.theme.css 17KB
bootstrap-responsive.min.css 16KB
styles.css 15KB
screen.css 14KB
screen.css 14KB
screen.css 13KB
screen.css 13KB
screen.css 13KB
screen.css 13KB
screen.css 11KB
styles.css 11KB
screen.css 11KB
showoff.css 10KB
960.css 10KB
deck.core.css 10KB
slidy.css 9KB
default.css 9KB
screen.css 8KB
flowtime.css 7KB
web-2.0.css 7KB
slidify.css 6KB
default.css 5KB
beige.css 5KB
styles.css 4KB
paper.css 4KB
fg.menu.css 4KB
sky.css 4KB
pygment_trac.css 4KB
solarized.css 4KB
moon.css 4KB
neon.css 4KB
ui.datepicker.css 4KB
simple.css 4KB
serif.css 4KB
night.css 4KB
pdf.css 3KB
vertical-slide.css 3KB
sh_style.css 3KB
uulm.css 3KB
horizontal-slide.css 3KB
prism.css 3KB
swiss.css 3KB
scianimator.css 3KB
arta.css 2KB
xcode.css 2KB
default.css 2KB
demo.css 2KB
slideous.css 2KB
tomorrow-night-bright.css 2KB
hemisu-light.css 2KB
sunburst.css 2KB
googlecode.css 2KB
sunburst.css 2KB
fathom.sample.css 2KB
fade.css 2KB
school_book.css 2KB
magula.css 2KB
zenburn.css 2KB
zenburn.css 2KB
far.css 2KB
monokai.css 2KB
brown_paper.css 2KB
dark.css 2KB
github.css 2KB
idea.css 2KB
desert.css 2KB
scianimator.blue.css 2KB
ribbons.css 2KB
default.css 2KB
pojoaque.css 2KB
scianimator.light.css 1KB
scianimator.dark.css 1KB
tomorrow_night.css 1KB
vs.css 1KB
tomorrow.css 1KB
deck.navigation.css 1KB
sons-of-obsidian.css 1KB
ui.core.css 1KB
print.css 1KB
print.css 1KB
ir_black.css 1KB
print.css 1KB
solarized_dark.css 1KB
solarized_light.css 1KB
print.css 1KB
onepage.css 1KB
reset.css 1KB
ui.dialog.css 1KB
deck.menu.css 1KB
共 1275 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13
资源评论
好家伙VCC
- 粉丝: 1920
- 资源: 9085
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- VBto Converter代码转换工具最新V2.89版
- 蓝桥杯CubeMX所有模块省赛配置
- 技术资料分享74LS154-很好的技术资料.zip
- 技术资料分享74HC595中文资料很好的技术资料.zip
- 虚拟文件管理系统20241031070002
- 技术资料分享0b-esp8266-system-description-cn-v1.4很好的技术资料.zip
- 技术资料分享0a-esp8266ex-datasheet-cn-v1.0很好的技术资料.zip
- AEC-Challenge-数据集资源
- christmasTree-圣诞树html网页代码
- java-emoji-converter-c++string
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功