久久资源网

css3新鲜的橙子动画

css3新鲜的橙子动画

2019-06-22 14:16:49 CSS3实例

售价:5.00积分 会员免费

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

css3新鲜的橙子动画

css3 @keyframes属性绘制鲜美多汁的橙子图像元素,两个跳动的橙子和切了一半的橙子动画特效。

使用方法

1、head引入css文件

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

2、body引入部分

<div class="scene">
  <div class="spatter">
	  <span></span>
	  <span></span>
	  <span></span>
	</div>
  <div class="shadow shadow--2 shrink"></div>
  <div class="orange orange--2 bounce">
    <div class="dimple-holder">
      <div class="dimples"></div>
      <div class="dimples"></div>
      <div class="inner-shadow"></div>
    </div>
    <div class="glow"></div>
    <div class="stem">
      <div class="stem__base"></div>
      <div class="stem__stalk"></div>
    </div>
  </div>
  <div class="shadow shadow--3"></div>
  <div class="half-orange sigh">
    <div class="peel-outer">
      <div class="peel"></div>
      <div class="dimple-holder">
        <div class="dimples"></div>
        <div class="dimples"></div>
        <div class="inner-shadow"></div>
      </div>
    </div>
    <div class="rind">
      <div class="rind-inner">
        <div class="juicy">
          <div class="center"></div>
          <span class="line"></span>
			<span class="line"></span>
			<span class="line"></span>
			<span class="line"></span> </div>
      </div>
    </div>
    <div class="drip"></div>
  </div>
  <div class="shadow shrink"></div>
  <div class="orange bounce">
    <div class="dimple-holder">
      <div class="dimples"></div>
      <div class="dimples"></div>
      <div class="inner-shadow"></div>
    </div>
    <div class="glow"></div>
    <div class="stem">
      <div class="stem__base"></div>
      <div class="stem__stalk"> </div>
    </div>
  </div>
</div>

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

关注微信