久久资源网

css3圆形时钟矢量动画

css3圆形时钟矢量动画

2019-06-21 11:21:33 CSS3实例

售价:5.00积分 会员免费

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

css3圆形时钟矢量动画

原生js css3搭建的圆形时钟,时针、分针、秒针获取当地时间。这是一款矢量的时钟动画。

使用方法

1、head引入css文件

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

2、body引入部分

  <div class="clock">
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="memory"> </div>
   <div class="needle" id="hours"> </div>
   <div class="needle" id="minutes"> </div>
   <div class="needle" id="seconds"> </div>
 </div>
 
 <script  src="js/script.js"></script>

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

关注微信