js实现商品生产质量、速度、价格之间的不同组合结果代码
代码语言:html
所属分类:其他
代码描述:js实现商品生产质量、速度、价格之间的不同组合结果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700&display=swap'>
<style>
* {
box-sizing: border-box;
}
body {
font-family: "Source Sans Pro", Verdana, sans-serif;
margin: 0;
min-height: 100vh;
overflow: hidden;
background: linear-gradient(#5c627d 50%, #2e3255);
}
button {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
outline: none;
}
.app {
position: relative;
margin: 0 auto;
max-width: 800px;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
flex-wrap: wrap;
font-size: 18px;
}
.btn {
font-size: inherit;
background: none;
cursor: pointer;
border-radius: 70px;
width: 70px;
height: 70px;
text-transform: uppercase;
background: transparent;
transform: translateZ(0);
outline: none;
border: none;
font-weight: bold;
color: transparent;
font-size: inherit;
box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12);
}
.btn.display {
font-weight: bold;
display: block;
pointer-events: none;
position: absolute;
top: 0;
left: 0;
box-shadow: none;
text-align: center;
line-height: 70px;
font-size: inherit;
color: white;
}
.btn-clicked {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 70px;
height: 70px;
background: white;
border-radius: 50%;
opacity: 0.5;
-webkit-animation: btn-clicked 500ms forwards;
animation: btn-clicked 500ms forwards;
}
@-webkit-keyframes btn-clicked {
100% {
opacity: 0;
transform: scale(1.5);
}
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0