<!doctype html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>轻量级高性能的CSS3动画库特效 - 网页模板</title>
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/htmleaf-demo.css">
<link rel="stylesheet" type="text/css" href="css/styles.css"/>
</head>
<body>
<div class="filters-container">
<headergroup>
<h1><strong>Repaintless.css</strong> 演示页面</h1>
<h2>点击 PLAY按钮开始元素动画。你可以分别点击各个按钮来显示或隐藏相应的动画。</h2>
</headergroup>
<label class="single-filter all-filter">
<input type="checkbox" rel="element-animated"/>
<span>All</span>
</label>
<label class="single-filter">
<input type="checkbox" rel="slide-from-right" />
<span>Slide from right</span>
</label>
<label class="single-filter">
<input type="checkbox" rel="slide-from-left" />
<span>Slide from left</span>
</label>
<label class="single-filter">
<input type="checkbox" rel="slide-from-top" />
<span>Slide from top</span>
</label>
<label class="single-filter">
<input type="checkbox" rel="slide-from-bottom" />
<span>Slide from bottom</span>
</label>
<label class="single-filter">
<input type="checkbox" rel="slide-from-right-bottom" />
<span>Slide from right bottom</span>
</label>
<label class="single-filter">
<input type="checkbox" rel="slide-from-right-top" />
<span>Slide from right top</span>
</label>
<label class="single-filter">
<input type="checkbox" rel="slide-from-left-bottom" />
<span>Slide from left bottom</span>
</label>
<label class="single-filter">
<input type="checkbox" rel="slide-from-left-top" />
<span>Slide from left top</span>
</label>
<label class="single-filter">
<input type="checkbox" rel="slide-left-right" />
<span>Slide left right</span>
</label>
<label class="single-filter">
<input type="checkbox" rel="slide-top-bottom" />
<span>Slide top bottom</span>
</label>
<label class="single-filter">
<input type="checkbox" rel="tremble" />
<span>Tremble</span>
</label>
</div>
<section class="main-container" role="main">
<button id="play-animation" type="button">PLAY</button>
<div class="element-animated slide-from-right"></div>
<div class="element-animated slide-from-left"></div>
<div class="element-animated slide-from-top"></div>
<div class="element-animated slide-from-bottom"></div>
<div class="element-animated slide-from-right-bottom"></div>
<div class="element-animated slide-from-right-top"></div>
<div class="element-animated slide-from-left-bottom"></div>
<div class="element-animated slide-from-left-top"></div>
<div class="element-animated slide-left-right"></div>
<div class="element-animated slide-top-bottom"></div>
<div class="element-animated tremble"></div>
</section>
<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
var checkbox = $('.single-filter').find('input:checkbox');
checkbox.attr("checked", false);
$('.all-filter').find('input:checkbox').attr("checked", true);
$('#play-animation').on('click', function () {
this.remove();
$('.main-container').find('.element-animated').each(function (){
this.classList.add("animation-running");
});
$('.all-filter').find('input:checkbox').attr("checked", true);
});
checkbox.on('click', function () {
$('.element-animated').css({"opacity" : "0"});
$('div.filters-container').find('input:checked').each(function () {
$('.element-animated.' + $(this).attr('rel')).css({"opacity" : ".8"});
});
});
});
</script>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
<p>适用浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。</p>
<p>来源:<a href="http://www.moobnn.com/" target="_blank">网页模板</a></p>
</div>
</body>
</html>