css实现window xp关机按钮动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现window xp关机按钮动画效果代码

代码标签: css window xp 关机 按钮 动画

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

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

<head>
 
<meta charset="UTF-8">

 
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
 
 
 
<style>
* {
        border: 0;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
}
:root {
        --trans-dur: 0.3s;
        font-size: calc(16px + (24 - 16) * (100vw - 320px) / (2560 - 320));
}
body,
button {
        font: 1em/1.5 Verdana, sans-serif;
}
body {
        background-color: hsl(223,10%,10%);
        display: flex;
        flex-direction: column;
        height: 100vh;
        transition:
                background-color var(--trans-dur),
                color var(--trans-dur);
}
header,
footer {
        background-color: hsl(227,73%,35%);
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-height: 4.4rem;
        position: absolute;
}
header {
        font-family: Arial, sans-serif;
        font-size: 1.75em;
        line-height: 1;
        margin-bottom: 0.2rem;
        padding: 0 1.25rem;
        top: 0;
}
footer {
        bottom: 0;
}
header:after {
        background-image: linear-gradient(90deg,hsl(220,50%,47%),hsl(215,77%,91%),hsl(220,50%,47%));
        content: "";
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0.2rem;
}
main {
        background-image: radial-gradient(circle at center,hsl(220,84%,78%),hsl(224,67%,61%) 12em);
        color: hsl(0,0%,100%);
        display: flex;
        justify-content: center;
        align-items: center;
        margin: auto;
        position: relative;
        max-width: 31.4em;
        width: 100%;
        min-height: 20em;
}
.btn-block {
        width: 9em;
        text-align: center;
}
.btn-block__u {
        text-decoration: underline;
}
.icon-btn {
        background-color: hsl(0,0%,50%);
        border-radius: 0.5em;.........完整代码请登录后点击上方下载按钮下载查看

网友评论0