dycalendar+vanilla-tilt实现倾斜的日历代码

代码语言:html

所属分类:其他

代码描述:dycalendar+vanilla-tilt实现倾斜的日历代码,鼠标悬停有交互,可切换月份,默认显示当前日期。

代码标签: dycalendar vanilla-tilt 倾斜 日历 代码

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

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/dycalendar.min.css">
<style>
    *{
    padding: 0;
    margin: 0;
}
section{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    background-color: #161623;
    overflow: hidden;
}
section::before{
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(#ffc107,#e91e63);
    border-radius: 50%;
    transform: translate(-250px,-120px);
    /* filter: blur(50px); */
}
section::after{
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(#2196f3,#31ff38);
    border-radius: 50%;
    transform: translate(250px,140px);
    /* filter: blur(50px); */
}
section .box{
    position: relative;
    z-index: 100;
}
section .box .container{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 400px;
    height: 400px;
    background-color: rgba(255,255,255,0.1);
    box-shadow: 0 25px 45px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,.5);
    border-right: 1px solid rgba(255,255,255,.2);
    border-bottom: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    backdrop-filter: blur(50px);
    /* -webkit-backdrop-filter: blur(50px); */
    -moz-backdrop-filter: blur(60px); 
    /* filter: grayscale(50%); */
    /* filter: opacity(50%) */
    /* filter: blur(2px); */
}
section .box .container .dycalendar{
    width: 100%;
    padding: 20px;
}
section .box .container .dycalendar table{
    width: 100%;
    margin-top: 40px;
}
.dycalendar-month-container .dycalendar-body table tr td{
    color: #fff;
    cursor: pointer;
}
.dycalendar-month-container .dycalendar-body table tr:nth-child(1) td{
    background-color: rgba(255,255,255,0.1);
    border-radius: 7px;
    font-weight: 400;
}
.dycalendar-month-container .dycalendar-body table tr td:hover{
    background-color: #fff;
    border-radius: 2px;
    color: #000;
}
.dycalendar-month-container .dycalendar-target-date, .dycalend.........完整代码请登录后点击上方下载按钮下载查看

网友评论0