js+css实现番茄时间管理倒计时时钟代码
代码语言:html
所属分类:布局界面
代码描述:js+css实现番茄时间管理倒计时时钟代码,可自定义时间的长度、包括短休息和长休息时间。
代码标签: js css 番茄 时间 管理 倒计时 时钟 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
:root {
--dark-blue: hsl(236, 44%, 17%);
--dark-blue-light: hsl(236, 44%, 25%);
--very-dark-blue: hsl(235, 35%, 13%);
--blue-gray: hsl(236, 15%, 60%);
--light-blue-gray: hsl(236, 46%, 93%);
--light-white-gray: hsl(212, 22%, 73%);
--pink: hsl(300, 82%, 78%);
--theme-color: hsl(0, 84%, 68%);
}
.container.red {
--theme-color: hsl(340, 100%, 58%);
}
.container.green {
--theme-color: hsl(55, 100%, 50%);
}
.container.blue {
--theme-color: hsl(135, 98%, 50%);
}
body {
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
min-height: 100vh;
background-color: var(--light-white-gray);
}
.container {
position: relative;
width: 450px;
height: 550px;
display: flex;
justify-content: center;
align-items: center;
/* flex-direction: column;
gap: 2rem; */
background: #c9d5e0;
border-radius: 50px;
border-top-left-radius: 250px;
border-top-right-radius: 250px;
box-shadow: 45px 45px 45px -15px rgba(0, 0, 0, 0.15),
inset 15px 15px 10px rgba(255, 255, 255, 0.75),
-15px -15px 35px rgba(255, 255, 255, 0.55),
inset -2px -2px 15px rgba(0, 0, 0, 0.2);
}
/* .logo{
} */
/* <!---------------- TIME CONTAINER ---------------------> */
.timer-container {
position: absolute;
top: 30px;
width: 390px;
height: 390px;
background-color: var(--very-dark-blue);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 7px 7px 22px #152b4a66, inset 7px 7px 7px rgba(255, 255, 255, 0.55),
-9px -9px 15px rgba(255, 255, 255, 1);
}
.timer-content {
width: 90%;
height: 90%;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
flex-direction: col.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0