js实现亮度测验答题效果代码
代码语言:html
所属分类:其他
代码描述:js实现亮度测验答题效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css2?family=Inter&display=swap" rel="stylesheet">
<style>
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
.options li {
width: 30vmin;
height: 30vmin;
list-style: none;
border-radius: 50%;
margin-top: 10vmin;
cursor: pointer;
transition: all 200ms ease;
box-shadow: 0 4px 20px rgba(0,0,0,0.1);
display: flex;
align-items: center;
justify-content: center;
background: #000;
}
.options li:hover {
transform: scale(1.05);
}
.options li svg {
width: 30%;
filter: drop-shadow(0px 0px 10px rgba(0,0,0,0.2));
}
.options li [href='#check'],
.options li [href='#cross'] {
animation: enter 200ms ease-out;
display: none;
}
.options li.correct [href='#check'] {
display: block;
}
.options li.wrong [href='#cross'] {
display: block;
}
h1 {
text-align: center;
font-size: 6vmin;
font-weight: normal;
margin-bottom: 5vmin;
}
.level {
margin-bottom: 2vmin;
font-size: 4vmin;
}
.diff {
font-size: 3vmin;
}
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0