先给大家上运行效果图,看看是不是特别棒!
这一张是小编抓拍时钟翻牌时的效果图:
为大家分享的JavaScript时钟翻牌效果代码如下
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Create an Animated Flip Down Clock</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="wrapper"> <div id="back"> <div id="upperHalfBack"> <img src="spacer.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" ><img id="hoursUpBack" src="Single/Up/AM/0.png"/ alt="js时钟翻牌效果实现代码分享_javascript技巧" > <img id="minutesUpLeftBack" src="Double/Up/Left/0.png" class="asd" / alt="js时钟翻牌效果实现代码分享_javascript技巧" ><img id="minutesUpRightBack" src="Double/Up/Right/0.png"/ alt="js时钟翻牌效果实现代码分享_javascript技巧" > <img id="secondsUpLeftBack" src="Double/Up/Left/0.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" ><img id="secondsUpRightBack" src="Double/Up/Right/0.png"/ alt="js时钟翻牌效果实现代码分享_javascript技巧" > </div> <div id="lowerHalfBack"> <img src="spacer.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" ><img id="hoursDownBack" src="Single/Down/AM/0.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" > <img id="minutesDownLeftBack" src="Double/Down/Left/0.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" ><img id="minutesDownRightBack" src="Double/Down/Right/0.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" > <img id="secondsDownLeftBack" src="Double/Down/Left/0.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" ><img id="secondsDownRightBack" src="Double/Down/Right/0.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" > </div> </div> <div id="front"> <div id="upperHalf"> <img src="spacer.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" ><img id="hoursUp" src="Single/Up/AM/0.png"/ alt="js时钟翻牌效果实现代码分享_javascript技巧" > <img id="minutesUpLeft" src="Double/Up/Left/0.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" ><img id="minutesUpRight" src="Double/Up/Right/0.png"/ alt="js时钟翻牌效果实现代码分享_javascript技巧" > <img id="secondsUpLeft" src="Double/Up/Left/0.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" ><img id="secondsUpRight" src="Double/Up/Right/0.png"/ alt="js时钟翻牌效果实现代码分享_javascript技巧" > </div> <div id="lowerHalf"> <img src="spacer.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" ><img id="hoursDown" src="Single/Down/AM/0.png"/ alt="js时钟翻牌效果实现代码分享_javascript技巧" > <img id="minutesDownLeft" src="Double/Down/Left/0.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" ><img id="minutesDownRight" src="Double/Down/Right/0.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" > <img id="secondsDownLeft" src="Double/Down/Left/0.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" ><img id="secondsDownRight" src="Double/Down/Right/0.png" / alt="js时钟翻牌效果实现代码分享_javascript技巧" > </div> </div> </div> </body> <script src="mootools.js" type="text/javascript"></script> <script src="animate.js" type="text/javascript"></script> </html>
以上就是为大家分享的JavaScript时钟翻牌代码,希望大家可以喜欢。