moment实现一个数字时钟及数字跳动动画效果代码

代码语言:html

所属分类:动画

代码描述:moment实现一个数字时钟及数字跳动动画效果代码

代码标签: 数字 时钟 数字 跳动 动画 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<html>
<head>
    <style>
        body {
            padding: 2em;
            background-color: #555;
        }

        .inputStyle {
            display: block;
            width: 60%;
            padding: 0.5em 1em;
            margin: 1em auto;
            border: none;
            font-family: "consolas", monospace;
            font-size: 1.2em;
        }

        .section-title {
            font-size: 2.5em;
            color: #eee;
            font-family: "Open Sans", Arial, sans-serif;
            font-weight: 300;
            text-align: center;
            margin: 1em 0;
        }


        .attrib {
            background-color: #888;
            padding: 10px;
            text-align: center;
            font-family: "Consolas";
        }

        .attrib .credits a {
            color: #7dffee;
        }



        /* section - digits time */
        .times-digit {
            text-align: center;
        }

        .hours, .minutes, .seconds {
            display: inline-block;
        }

        .times-digit .digit,
        .times-digit .colon {
            display: inline-block;
        }

        /* section - digits go random */
        .digits-go-random .digit {
            float: left;
            transform: scale(0.5);
            transition: 0.2 all ease-in-out;
        }

        .digits-go-random .digit:hover {
            transform: scale(1);
            transition: 0.2 all ease-in-out;
        }


        /* Digits CSS */


        .digit, .colon {
            position: relative;
            margin: 2em 1em;
            width: 120px;
            height: 240px;
        }

        .colon {
            width: 80px;
        }
        .colon .circle {
            position: absolute;
            width: 40px.........完整代码请登录后点击上方下载按钮下载查看

网友评论0