久久资源网

css3双螺旋DNA动画

css3双螺旋DNA动画

2019-06-24 10:20:58 CSS3实例

售价:5.00积分 会员免费

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

css3双螺旋DNA动画

css calc() 属性设置宽度和高度的长度值,来绘制双螺旋结构,使用animation形成动态的DNA分子结构。

使用方法

1、head引入css文件

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

2、body引入部分

<content>
  <div class="blueprint">
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
    <div class="bar">
      <div class="dot1"></div>
      <div class="dot2"></div>
    </div>
  </div>
</content>

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

关注微信