带有进度的3D下载按钮

带有进度的3D下载按钮
下载次数:2 文件大小:4.09KB 所需积分:0 QQ联系购买积分:3331653644(1元=10积分)
var download = $('.download'),
    meter = $('.meter');

$('.button-download').on('click', function(e) {
  download.toggleClass('is-active');
  
  setTimeout(function() {
    meter.toggleClass('is-done');
  }, 4000);
  
  e.preventDefault();
});

$('#reset').on('click', function() {
  download.removeClass('is-active');
  meter.removeClass('is-done');
});

 

0 条评论