数码时钟

DIGITAL CLOCK 是一个 JQUERY 插件,它使用 CREATEJS 库将 HTML5 画布元素转换为可配置的数字时钟动画,数字时钟由 48 个块组成,在那里它将转换为不同的数字。

DEMOS


FEATURES

  • Works Great on any Device (Desktop, Tablet, Mobile).
  • Ready to use with assets included.
  • Easy to replace your own assets.
  • Adjustable color, position, speed, for each bottle or glasses.
  • All options, methods and events are documented.
  • Make with CreateJS

HOW TO USE

Step 1: Link required files
                            
    <script src="js/jquery.min.js"></script>
    <script src="js/createjs.min.js"></script>
    <script src="js/digital-clock.js"></script>
                            
                        
Step 2: HTML markup
                            
	<canvas id="clockHolder" width="1000" height="500"></canvas>
                            
                        
Step 3: Call the JS
                            
   $(document).ready(function(){
            $('#clockHolder').digitalClock({colour:'#8F44AD',
                                        blockWidth:10,
                                        blockHeight:50});
    });