笑脸时钟日历效果
代码语言:html
所属分类:布局界面
代码描述:笑脸时钟日历效果
代码标签: 效果
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
:root{
--black:hsl(180,100%,2%);
--white:hsl(180,100%,96%);
--featuredColor: blueviolet;
}
html,body{
height: 100%;
margin: 0;
}
body{
background-color:var(--black) ;
color:var(--white);
font-family:sans-serif;
display: flex;
}
h1{
font-size: 18px;
font-weight: normal;
margin:0;
position:absolute;
z-index:0;
line-height:18px;
}
h1 small{
font-size: 16px;
font-style: italic;
opacity:.6;
}
#quotes{
position:absolute;
top:0;
right: 0;
z-index: 1;
transition: .3s;
text-align: right;
font-style: italic;
text-shadow: -1px -1px 0 var(--black), 1px -1px 0 var(--black), -1px 1px 0 var(--black), 1px 1px 0 var(--black);
}
#quotes b,#quotes span{
color:var(--featuredColor);
}
button{
position:absolute;
bottom: 0;
margin:10px;
border:none;
background-color: transparent;
padding: 5px;
cursor:pointer;
font-size:16px;
text-decoration: underline;
color:var(--white);
}
button:disabled{
opacity:.2;
cursor:default;
text-decoration: none;
}
button[value="1"]{
right: 0;
}
button[value="1"]::after{
content: " »" ;
}
button[value="-1"]::before{
content: "« " ;
}
#container{
--size : min(100vw ,100vh);
--tanAngle:0.1989123673796;
--sector: calc(var(--size) * var(--tanAngle) / 2 ) ;
width: var(--size) ;
he.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0