久久资源网

css3舞台灯光人物像素动画特效

css3舞台灯光人物像素动画特效

2019-05-02 22:36:59 CSS3实例

售价:5.00积分 会员免费

特别声明:资源售价只是赞助,不代表代码或者素材本身点数。收取费用仅维持本站的日常运营所需!

css3舞台灯光人物像素动画特效

jQuery基于css3属性制作演唱会舞台上聚光灯人物像素动画场景特效。

使用方法

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>

资源出处:https://www.moyublog.com/codes/9417.html

关注微信