HTML5 SVG数字变形时钟特效代码下载


HTML5 SVG数字变形时钟特效代码下载
HTML5 SVG数字变形时钟特效代码下载以及SVG、数字变形时钟等js/jquery网页特效代码下载。

1. 引入CSS

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

2. 引入JS

<script src='js/anime.min.js'></script>
<script src="js/script.js"></script>

3. HTML代码

<div class='wrapper'>
  <div class='clock'>
    <div class='number number_1'>
      <div class='digit' data-number='0'>
        <svg class='digit__svg' viewbox='0 0 50 100' xmlns='http://www.w3.org/svg/2000'>
          <path d='M0,0 L50,0 L50,50 L50,100 L0,100 L0,25 L0,0'></path>
        </svg>
      </div>
      <div class='digit' data-number='0'>
        <svg class='digit__svg' viewbox='0 0 50 100' xmlns='http://www.w3.org/svg/2000'>
          <path d='M0,0 L50,0 L50,50 L50,100 L0,100 L0,25 L0,0'></path>
        </svg>
      </div>
    </div>
    <div class='number number_2'>
      <div class='digit' data-number='0'>
        <svg class='digit__svg' viewbox='0 0 50 100' xmlns='http://www.w3.org/svg/2000'>
          <path d='M0,0 L50,0 L50,50 L50,100 L0,100 L0,25 L0,0'></path>
        </svg>
      </div>
      <div class='digit' data-number='0'>
        <svg class='digit__svg' viewbox='0 0 50 100' xmlns='http://www.w3.org/svg/2000'>
          <path d='M0,0 L50,0 L50,50 L50,100 L0,100 L0,25 L0,0'></path>
        </svg>
      </div>
    </div>
    <div class='number number_3'>
      <div class='digit' data-number='0'>
        <svg class='digit__svg' viewbox='0 0 50 100' xmlns='http://www.w3.org/svg/2000'>
          <path d='M0,0 L50,0 L50,50 L50,100 L0,100 L0,25 L0,0'></path>
        </svg>
      </div>
      <div class='digit' data-number='0'>
        <svg class='digit__svg' viewbox='0 0 50 100' xmlns='http://www.w3.org/svg/2000'>
          <path d='M0,0 L50,0 L50,50 L50,100 L0,100 L0,25 L0,0'></path>
        </svg>
      </div>
    </div>
  </div>
</div>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';color:#ffffff">
</div>

相关推荐

发表评论

相关文章