久久资源网

html5 css3吃竹子的熊猫动画

html5 css3吃竹子的熊猫动画

2019-06-27 20:38:37 HTML5实例

售价:5.00积分 会员免费

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

html5 css3吃竹子的熊猫动画

scene.js基于css3绘制熊猫吃竹子,瘫坐在竹子旁的熊猫动画特效。

使用方法

1、head引入css文件

<link rel="stylesheet" href="css/style.css" />

2、body引入部分

<div class="container">
  <div class="bamboo joint2 bamboo1">
    <div class="joint"></div>
    <div class="joint"></div>
  </div>
  <div class="bamboo-group bamboo-group1">
    <div class="bamboo">
      <div class="joint">
        <div class="leaf left left60 light"></div>
        <div class="leaf left left30"></div>
      </div>
      <div class="joint"></div>
      <div class="joint"></div>
    </div>
    <div class="bamboo">
      <div class="joint">
        <div class="leaf left left60 light"></div>
        <div class="leaf left left30"></div>
      </div>
      <div class="joint"></div>
    </div>
    <div class="bamboo">
      <div class="joint"></div>
      <div class="joint">
        <div class="leaf right right60 light"></div>
        <div class="leaf right right90"></div>
      </div>
      <div class="joint"></div>
    </div>
  </div>
  <div class="bamboo-group bamboo-group2">
    <div class="bamboo">
      <div class="joint">
        <div class="leaf left left60 light"></div>
        <div class="leaf left left30"></div>
      </div>
      <div class="joint"></div>
      <div class="joint"></div>
    </div>
    <div class="bamboo">
      <div class="joint">
        <div class="leaf left left60 light"></div>
        <div class="leaf left left30"></div>
      </div>
      <div class="joint"></div>
    </div>
    <div class="bamboo">
      <div class="joint"></div>
      <div class="joint">
        <div class="leaf right right60 light"></div>
        <div class="leaf right right90"></div>
      </div>
      <div class="joint"></div>
    </div>
  </div>
  <div class="bamboo-group bamboo-group3 dark">
    <div class="bamboo">
      <div class="joint">
        <div class="leaf left left60 light"></div>
        <div class="leaf left left30"></div>
      </div>
      <div class="joint"></div>
      <div class="joint"></div>
    </div>
    <div class="bamboo">
      <div class="joint">
        <div class="leaf left left60 light"></div>
        <div class="leaf left left30"></div>
      </div>
      <div class="joint"></div>
    </div>
    <div class="bamboo">
      <div class="joint"></div>
      <div class="joint">
        <div class="leaf right right60 light"></div>
        <div class="leaf right right90"></div>
      </div>
      <div class="joint"></div>
    </div>
  </div>
  <div class="bamboo-group bamboo-group4 dark">
    <div class="bamboo">
      <div class="joint">
        <div class="leaf left left60 light"></div>
        <div class="leaf left left30"></div>
      </div>
      <div class="joint"></div>
      <div class="joint"></div>
    </div>
    <div class="bamboo">
      <div class="joint">
        <div class="leaf left left60 light"></div>
        <div class="leaf left left30"></div>
      </div>
      <div class="joint"></div>
    </div>
    <div class="bamboo">
      <div class="joint"></div>
      <div class="joint">
        <div class="leaf right right60 light"></div>
        <div class="leaf right right90"></div>
      </div>
      <div class="joint"></div>
    </div>
    <div class="bamboo">
      <div class="joint">
        <div class="leaf left left60 light"></div>
        <div class="leaf left left30"></div>
      </div>
      <div class="joint"></div>
    </div>
  </div>
  <div class="panda">
    <div class="body">
      <div class="arm left">
        <div class="forearm">
          <div class="hand"></div>
        </div>
      </div>
      <div class="leg left">
        <div class="foot"></div>
      </div>
      <div class="belly"> </div>
      <div class="leg right">
        <div class="foot"></div>
      </div>
      <div class="head">
        <div class="ear left"></div>
        <div class="ear right"></div>
        <div class="cheek right"></div>
        <div class="face">
          <div class="eye left"></div>
          <div class="eye right"></div>
        </div>
      </div>
      <div class="arm right">
        <div class="forearm">
          <div class="hand">
            <div class="bamboo joint2">
              <div class="joint"></div>
              <div class="joint"></div>
            </div>
          </div>
        </div>
      </div>
      <div class="head front">
        <div class="mouth"></div>
        <div class="nose">
          <div class="mustache left"></div>
          <div class="mustache right"></div>
        </div>
      </div>
    </div>
  </div>
</div>
<script src='js/scene.js'></script> 
<script src='js/effects.js'></script> 
<script src="js/script.js"></script>

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

关注微信