js实现古老转盘显示时间日期代码

代码语言:html

所属分类:其他

代码描述:js实现古老转盘显示时间日期代码

代码标签: js 古老 转盘 显示 时间 日期 代码

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

<!DOCTYPE html>
<html lang="en" >

<head>
 
<meta charset="UTF-8">
 
 
 
<style>
@import url("https://fonts.cdnfonts.com/css/isidora-soft-alt");

body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        font-family: "Isidora Soft Alt", sans-serif;
        background: linear-gradient(37deg, #a44169, #bc7a51);
        color: #fff;
        padding-top: 20px;
}

*,
*::before,
*::after {
        padding: 0;
        margin: 0 auto;
        box-sizing: border-box;
}

.demo {
        position: relative;
        max-height: 460px;
        overflow: hidden;
        --size: 560px;

        @media screen and (max-width: 600px) {
                max-height: 240px;
                --size: 320px;
        }
}

label {
        position: absolute;
        top: 0;
        left: 0;
        line-height: 40px;
        height: 100%;
        width: 100%;
        padding: 6px 32px 6px 12px;
        vertical-align: middle;
        z-index: 1;
        pointer-events: none;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 40px;
}

input {
        display: block;
        appearance: none;
        border: none;
        color: transparent;
        width: 122px;
        height: 40px;
        line-height: 40px;
        cursor: pointer;
        z-index: 2;
        user-select: none;
        position: relative;
        mask-image: linear-gradient(
                to right,
                transparent 0%,
                transparent 80%,
                black 80%,
                black 100%
        );
        background-color: transparent;
        background-size: 24px 24px;
        background-repeat: no-repeat;
        background-position: right center;
        background-image: url("data:image/svg+xml,%3Csvg height='21' viewBox='0 0 21 21' width='21' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' transform='translate(1 2)'%3E%3Cpath d='m1.5 8.46153846v-6.02882304c0-1.1045695.8954305-2 2-2 .00320511 0 .00641021.00000771.00961527.00002312l12.00000003.0576923c1.1008036.00529233 1.9903847.89916054 1.9903847 1.99997689v11.99995377c0 1.1045695-.895.........完整代码请登录后点击上方下载按钮下载查看

网友评论0