使用方法:
1、head引入css文件
<link rel="stylesheet" href="css/style.css">
2、head引入js文件
<script src='js/jquery.min.js'></script>
3、body引入HTML代码
<div class="pixels-container">
<div class="stage">
<div class="curtain"></div>
<div class="top-sun"></div>
<div class="middle-sun"></div>
<div class="base-sun"></div>
<div class="pedestal"></div>
<div class="ground"></div>
</div>
<div class="animate pixels01" data-anchor="dp"></div>
<div class="animate pixels02" data-anchor="dp"></div>
<div class="animate pixels03" data-anchor="dp"></div>
<div class="animate pixels04" data-anchor="dp"></div>
<div class="animate pixels05" data-anchor="dp"></div>
<div class="animate pixels06" data-anchor="dp"></div>
<div class="animate pixels07" data-anchor="dp"></div>
<div class="animate pixels08" data-anchor="dp"></div>
<div class="animate pixels09" data-anchor="dp"></div>
<div class="animate pixels10" data-anchor="dp"></div>
<div class="animate pixels11" data-anchor="dp"></div>
<div class="animate pixels12" data-anchor="dp"></div>
<div class="animate pixels13" data-anchor="dp"></div>
<div class="animate pixels14" data-anchor="dp"></div>
<div class="animate pixels15" data-anchor="dp"></div>
<div class="animate pixels16" data-anchor="dp"></div>
<div class="animate pixels17" data-anchor="dp"></div>
<div class="animate pixels18" data-anchor="dp"></div>
<div class="animate pixels19" data-anchor="dp"></div>
<div class="animate pixels20" data-anchor="dp"></div>
<div class="animate pixels21" data-anchor="dp"></div>
<div class="animate pixels22" data-anchor="dp"></div>
<div class="animate pixels23" data-anchor="dp"></div>
<div class="animate pixels24" data-anchor="dp"></div>
<div class="animate pixels25" data-anchor="dp"></div>
<div class="animate pixels26" data-anchor="dp"></div>
<div class="animate pixels27" data-anchor="dp"></div>
<div class="animate pixels28" data-anchor="dp"></div>
<div class="animate pixels29" data-anchor="dp"></div>
<div class="animate pixels30" data-anchor="dp"></div>
<div class="animate pixels31" data-anchor="dp"></div>
<!-- <div class="animate pixels32" data-anchor="dp"></div> -->
<div class="animate pixels33" data-anchor="dp"></div>
<div class="animate pixels34" data-anchor="dp"></div>
<div class="animate pixels35" data-anchor="dp"></div>
<div class="animate pixels36" data-anchor="dp"></div>
<div class="animate pixels37" data-anchor="dp"></div>
<div class="animate pixels38" data-anchor="dp"></div>
<div class="animate pixels39" data-anchor="dp"></div>
<div class="animate pixels40" data-anchor="dp"></div>
<div class="animate pixels41" data-anchor="dp"></div>
<div class="animate pixels42" data-anchor="dp"></div>
<div class="animate pixels43" data-anchor="dp"></div>
<div class="animate pixels44" data-anchor="dp"></div>
<div class="animate pixels45" data-anchor="dp"></div>
<div class="animate pixels46" data-anchor="dp"></div>
<div class="animate pixels47" data-anchor="dp"></div>
<div class="animate pixels48" data-anchor="dp"></div>
<div class="animate pixels49" data-anchor="dp"></div>
<div class="animate pixels50" data-anchor="dp"></div>
<div class="animate pixels51" data-anchor="dp"></div>
<div class="animate pixels52" data-anchor="dp"></div>
</div>
<div class="sidelines"></div>
<script src="js/index.js"></script>