svg+js实现简洁温度数值调节器步进器代码

代码语言:html

所属分类:其他

代码描述:svg+js实现简洁温度数值调节器步进器代码

代码标签: svg js 简洁 温度 数值 调节器 步进器 代码

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

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

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

  <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Overpass:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
  
  
  
<style>
body {
  background: black;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.climate-button-row {
  width: 108px;
  height: 50px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.climate-button {
  background: rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 12px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}
.climate-button:active {
  background: rgba(255, 255, 255, 0.2);
}
.climate-button button {
  background: none;
  outline: none;
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}
.climate-button button.climate-button-adjustment {
  height: 50px;
  width: 50px;
  display: flex;
  opacity: 0;
}
.climate-button button.climate-button-adjustment svg {
  width: 16px;
  height: 16px;
}
.climate-button button.climate-button-adjustment:active svg {
  color: #555;
}
.climate-button .temp {
  text-align: right;
  color: white;
  font-weight: 600;
  font-size: 20px;
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s ease-out 0s;
}
.climate-button .temp-align.........完整代码请登录后点击上方下载按钮下载查看

网友评论0