-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.make.html
More file actions
102 lines (94 loc) · 4.71 KB
/
index.make.html
File metadata and controls
102 lines (94 loc) · 4.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<title>fairy.js | by sekaiamber</title>
<meta name="author" content="sekaiamber(Xu Xiaomeng)" />
<link href="style/sample.css" rel="stylesheet" />
<script src="script/fairy.js"></script>
<script src="script/fairy.maker.js"></script>
<!-- In fact, we do not need jQuery, here just to show, fairy.js can work well with jQuery :) -->
<script src="script/jquery-1.11.1.min.js"></script>
<!--
==TODO==
<link rel="shortcut icon" href="favicon.png" />
-->
</head>
<body>
<div id="fairy">
<div class="fairy-step front front1" step-index="1">请使用←和→来控制</div>
<div class="fairy-step front front2" step-index="2">这个项目来源于[<a href="https://prezi.com/">Prezi</a>],一个极其优秀又独特的演示文稿软件</div>
<div class="fairy-step front front3" step-index="3">参考了许多有用的库,特别感谢的是<b>impress.js</b>,然而<b>fairy.js≠impress.js</b></div>
<div class="fairy-step front front4" step-index="4">用自己的想法重新实现了这个,获益良多</div>
<div class="fairy-step front front5" step-index="5">So, Go ahead :)</div>
<div class="fairy-step board board1" step-index="6">PowerPoint第一个版本(1987)至今已经快30年了!然而我们在现代浏览器中仍然使用着它的模式。</div>
<div class="fairy-step board board2" step-index="7">你是否<b>厌倦</b>了这种线性的演示文稿?你不觉得我们使用着强大的浏览器却在老套路中打转是一件很low的事吗?</div>
<div class="fairy-step board board3" step-index="8">如果你确实这么想,并且苦于乏味的转换和一成不变的模式</span></div>
<div class="fairy-step text text1" step-index="9">
<span>那么请你尝试一下:)</span><br>
<span class="logo">fairy.js</span><br>
<span>不依赖任何第三方库~</span>
</div>
<div class="fairy-step text text2" step-index="10">
<span class="logo">fairy.js</span>是一个用于展示<b>演示文稿</b>的javascript库<br>
她的灵感来源于[<a href="https://prezi.com/">Prezi</a>],一个极其优秀又独特的演示文稿软件:)<br>
就像很多优秀的同类(比如impress.js)一样,她的强大基于现代浏览器的<b>CSS3 transforms</b>
</div>
<div class="fairy-step text text3" step-index="11">
不过这也意味着某些低版本的浏览器无法使用她<br>
So sad ˙﹏˙
</div>
<div class="fairy-step text text4" step-index="12">
在这个<br>
<span>大大的</span><br>
世界中
</div>
<div class="fairy-step text text5" step-index="13">
每个人都有<b>小小的</b>梦想
</div>
<div class="fairy-step text text6" step-index="14">
通过<b class="position">移动</b>、<b class="rotate">旋转</b><br>
和<b class="scale">缩放</b>,<br>
来说出你想说的!<br>
(。・`ω´・)ノ゙☆
</div>
<div class="fairy-step text text7" step-index="15">
并且,更重要的是...
</div>
<div class="fairy-step text text8" step-index="16">
<span class="z1">世界</span><span class="z2">是</span><span class="z3"><b>三维</b></span><span class="z4">的</span><br>
prezi,你做得到嘛?:)
</div>
<div class="fairy-step overview" step-index="17" id="overview">
<div>
<div><span class="logo">fairy.js</span></div>
<div><button id="replay">Replay</button></div>
</div>
</div>
</div>
<script>
fairy('init', {
perspective: 1000,
transitionDuration: 1000,
events: {
change: function(dom, index) {
$(".fairy-step").removeClass('show');
if (index < 6) {
$(".fairy-step.front").addClass('show');
} else if (index < 17) {
$(".fairy-step.board").addClass('show');
$(".fairy-step.text").addClass('show');
} else if (index == 17) {
$("#overview").addClass('show');
};
$(".fairy-step.text.text5").removeClass('show');
}
}
})('start');
$("#replay").click(function(){
fairy('start');
});
</script>
</body>
</html>