function () { this.currentSize = this.getSize(this.time); this.nextSize = this.getSize(this.nextTime); }, getSize: function (time) { return time > 9 ? 'small' : ''; }, setupAnimation: function () { this.el.innerHTML = this.template(this); this.el.classList.remove('changed'); }, executeAnimation: function () { this.el.classList.add('changing'); }, finishAnimation: function () { this.el.classList.add('changed'); this.el.classList.remove('changing'); } }; new Countdown(12, document.querySelector('.count'), document.querySelector('#count-template'));
*
回帖描述:*
链接类型:*
下载链接:*
描述:*
回帖描述:*
链接类型:*
阅读权限:*
下载链接:



聚优部落技术论坛 © 版权所有 鲁ICP备15007479号-6
Copyright(C)web.com, All Rights Reserved.
