react实现单选问答答题答卷代码
代码语言:html
所属分类:其他
代码描述:react实现单选问答答题答卷代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
/* Slide animations for the entire card */
.slide-enter-active {
animation: slide-in 0.3s forwards;
}
.slide-exit-active {
animation: slide-out 0.3s forwards;
}
@keyframes slide-out {
to {
transform: translateX(-250%);
}
from {
transform: translateX(0);
}
}
@keyframes slide-in {
from {
transform: translateX(100%);
}
to {
transform: translateX(0);
}
}
.app {
display: grid;
place-content: center;
overflow-x: clip;
}
.card, .score-section {
width: 50ch;
background-color: #5eb0e5;
color: #ebebe3;
padding: 2rem;
display: grid;
gap: 1em;
box-shadow: 0 0 0 0.25em #1f2020, 0.5em 0.5em 0 0.25em #1f2020;
}
.answer-section {
display: grid;
gap: 1em;
}
button {
appearance: none;
all: initial;
border: 1px solid;
background-color: #e1f8dc;
padding: 0.35em 0.8em;
box-shadow: 0.25em 0.25em 0 0 #1f2020;
transition: 0.1s ease;
will-change: translate, box-shadow;
font-family: system-ui, sans-serif;
}
button:active {
translate: 0.25em 0.25em;
box-shadow: -0.1em -0.1em 0 0.2em #1f2020, inset 0.2em 0.2em 0 #1f202050;
}
button:hover {
background-color: #f9f6ef;
color: #1f2020;
}
.question-count {
font-size: 0.9rem;
color: #e1f8dc;
}.........完整代码请登录后点击上方下载按钮下载查看
网友评论0