forked from wumingjun/hplus4.1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcss_animation.html
178 lines (154 loc) · 13.2 KB
/
css_animation.html
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>H+ 后台主题UI框架 - css动画</title>
<meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
<meta name="description" content="H+是一个完全响应式,基于Bootstrap3最新版本开发的扁平化主题,她采用了主流的左右两栏式布局,使用了Html5+CSS3等现代技术">
<link rel="shortcut icon" href="favicon.ico"> <link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/style.min.css" rel="stylesheet">
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeIn">
<div class="row">
<div class="col-sm-12">
<div class="ibox float-e-margins">
<div class="ibox-title">
<h5>CSS动画 <small>http://daneden.github.io/animate.css/</small></h5>
<div class="ibox-tools">
<a class="collapse-link">
<i class="fa fa-chevron-up"></i>
</a>
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
<i class="fa fa-wrench"></i>
</a>
<ul class="dropdown-menu dropdown-user">
<li><a href="#">选项1</a>
</li>
<li><a href="#">选项2</a>
</li>
</ul>
<a class="close-link">
<i class="fa fa-times"></i>
</a>
</div>
</div>
<div class="ibox-content text-center css-animation-box">
<h1 class="text-navy">
Animation.css
</h1>
<p>
Animation.css是一个迷人的动画库,它提供了一堆很酷的,有趣的,跨浏览器的动画,你可以在项目中调用它们。
</p>
<div class="hr-line-dashed"></div>
<div class="row">
<div class="col-sm-6 text-center">
<h4 class="m-b-lg">
动画效果示例框
</h4>
<div id="animation_box" class="animated">
<div class="text-center wrapper-content animation-text-box">
<h2>48%</h2>
<p>市场销售额</p>
</div>
<div id="rickshaw_multi" class="rickshaw_graph"></div>
</div>
</div>
<div class="col-sm-6 animation-efect-links text-center">
<h4 class="m-b-lg">
点击下面按钮,可以从“动画效果示例框”中预览效果
</h4>
<!--<h5 class="text-navy">Attention Seekers</h5>-->
<a href="#" class="btn btn-white animation_select" data-animation="bounce">bounce</a>
<a href="#" class="btn btn-white animation_select" data-animation="flash">flash</a>
<a href="#" class="btn btn-white animation_select" data-animation="pulse">pulse</a>
<a href="#" class="btn btn-white animation_select" data-animation="rubberBand">rubberBand</a>
<a href="#" class="btn btn-white animation_select" data-animation="shake">shake</a>
<a href="#" class="btn btn-white animation_select" data-animation="swing">swing</a>
<a href="#" class="btn btn-white animation_select" data-animation="tada">tada</a>
<a href="#" class="btn btn-white animation_select" data-animation="wobble">wobble</a>
<!--<h5 class="text-navy">Bouncing Entrances</h5>-->
<a href="#" class="btn btn-white animation_select" data-animation="bounceIn">bounceIn</a>
<a href="#" class="btn btn-white animation_select" data-animation="bounceInDown">bounceInDown</a>
<a href="#" class="btn btn-white animation_select" data-animation="bounceInLeft">bounceInLeft</a>
<a href="#" class="btn btn-white animation_select" data-animation="bounceInRight">bounceInRight</a>
<a href="#" class="btn btn-white animation_select" data-animation="bounceInUp">bounceInUp</a>
<!--<h5 class="text-navy">Bouncing Exits</h5>-->
<a href="#" class="btn btn-white animation_select" data-animation="bounceOut">bounceOut</a>
<a href="#" class="btn btn-white animation_select" data-animation="bounceOutDown">bounceOutDown</a>
<a href="#" class="btn btn-white animation_select" data-animation="bounceOutLeft">bounceOutLeft</a>
<a href="#" class="btn btn-white animation_select" data-animation="bounceOutRight">bounceOutRight</a>
<a href="#" class="btn btn-white animation_select" data-animation="bounceOutUp">bounceOutUp</a>
<!--<h5 class="text-navy">Fading Entrances</h5>-->
<a href="#" class="btn btn-white animation_select" data-animation="fadeIn">fadeIn</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeInDown">fadeInDown</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeInDownBig">fadeInDownBig</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeInLeft">fadeInLeft</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeInLeftBig">fadeInLeftBig</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeInRight">fadeInRight</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeInRightBig">fadeInRightBig</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeInUp">fadeInUp</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeInUpBig">fadeInUpBig</a>
<!--<h5 class="text-navy">Fading Exits</h5>-->
<a href="#" class="btn btn-white animation_select" data-animation="fadeOut">fadeOut</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeOutDown">fadeOutDown</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeOutDownBig">fadeOutDownBig</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeOutLeft">fadeOutLeft</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeOutLeftBig">fadeOutLeftBig</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeOutRight">fadeOutRight</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeOutRightBig">fadeOutRightBig</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeOutUp">fadeOutUp</a>
<a href="#" class="btn btn-white animation_select" data-animation="fadeOutUpBig">fadeOutUpBig</a>
<!--<h5 class="text-navy">Flippers</h5>-->
<a href="#" class="btn btn-white animation_select" data-animation="flip">flip</a>
<a href="#" class="btn btn-white animation_select" data-animation="flipInX">flipInX</a>
<a href="#" class="btn btn-white animation_select" data-animation="flipInY">flipInY</a>
<a href="#" class="btn btn-white animation_select" data-animation="flipOutX">flipOutX</a>
<a href="#" class="btn btn-white animation_select" data-animation="flipOutY">flipOutY</a>
<!--<h5 class="text-navy">Lightspeed</h5>-->
<a href="#" class="btn btn-white animation_select" data-animation="lightSpeedIn">lightSpeedIn</a>
<a href="#" class="btn btn-white animation_select" data-animation="lightSpeedOut">lightSpeedOut</a>
<!--<h5 class="text-navy">Rotating Entrances</h5>-->
<a href="#" class="btn btn-white animation_select" data-animation="rotateIn">rotateIn</a>
<a href="#" class="btn btn-white animation_select" data-animation="rotateInDownLeft">rotateInDownLeft</a>
<a href="#" class="btn btn-white animation_select" data-animation="rotateInDownRight">rotateInDownRight</a>
<a href="#" class="btn btn-white animation_select" data-animation="rotateInUpLeft">rotateInUpLeft</a>
<a href="#" class="btn btn-white animation_select" data-animation="rotateInUpRight">rotateInUpRight</a>
<!--<h5 class="text-navy">Rotating Exits</h5>-->
<a href="#" class="btn btn-white animation_select" data-animation="rotateOut">rotateOut</a>
<a href="#" class="btn btn-white animation_select" data-animation="rotateOutDownLeft">rotateOutDownLeft</a>
<a href="#" class="btn btn-white animation_select" data-animation="rotateOutDownRight">rotateOutDownRight</a>
<a href="#" class="btn btn-white animation_select" data-animation="rotateOutUpLeft">rotateOutUpLeft</a>
<a href="#" class="btn btn-white animation_select" data-animation="rotateOutUpRight">rotateOutUpRight</a>
<!--<h5 class="text-navy">Sliders</h5>-->
<a href="#" class="btn btn-white animation_select" data-animation="slideInDown">slideInDown</a>
<a href="#" class="btn btn-white animation_select" data-animation="slideInLeft">slideInLeft</a>
<a href="#" class="btn btn-white animation_select" data-animation="slideInRight">slideInRight</a>
<a href="#" class="btn btn-white animation_select" data-animation="slideOutLeft">slideOutLeft</a>
<a href="#" class="btn btn-white animation_select" data-animation="slideOutRight">slideOutRight</a>
<a href="#" class="btn btn-white animation_select" data-animation="slideOutUp">slideOutUp</a>
<!--<h5 class="text-navy">Specials</h5>-->
<a href="#" class="btn btn-white animation_select" data-animation="hinge">hinge</a>
<a href="#" class="btn btn-white animation_select" data-animation="rollIn">rollIn</a>
<a href="#" class="btn btn-white animation_select" data-animation="rollOut">rollOut</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/plugins/peity/jquery.peity.min.js"></script>
<script src="js/content.min.js"></script>
<script src="js/plugins/rickshaw/vendor/d3.v3.js"></script>
<script src="js/plugins/rickshaw/rickshaw.min.js"></script>
<script>
$(document).ready(function(){$(".animation_select").click(function(){$("#animation_box").removeAttr("class").attr("class","");var animation=$(this).attr("data-animation");$("#animation_box").addClass("animated");$("#animation_box").addClass(animation);return false});var graph2=new Rickshaw.Graph({element:document.querySelector("#rickshaw_multi"),renderer:"area",stroke:true,series:[{data:[{x:0,y:2},{x:1,y:5},{x:2,y:8},{x:3,y:4},{x:4,y:8}],color:"#1ab394",stroke:"#17997f"},{data:[{x:0,y:13},{x:1,y:15},{x:2,y:17},{x:3,y:12},{x:4,y:10}],color:"#eeeeee",stroke:"#d7d7d7"}]});graph2.renderer.unstack=true;graph2.render()});
</script>
</body>
</html>