Commit fc938dd3 authored by raca's avatar raca

feat: copy 动画

parent af4c01c4
......@@ -21,10 +21,45 @@
display: flex;
justify-content: center;
@keyframes shake {
0% {
opacity: 0;
transform: scale3d(5, 3, 1);
}
50% {
opacity: 1;
transform: scale3d(0.5, 0.5, 1);
}
100% {
transform: scale3d(1, 1, 1);
opacity: 1;
}
}
@keyframes flash_shake {
0% {
opacity: 0;
}
25% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.flash {
position: absolute;
width: 360px;
height: 200px;
animation-timing-function: ease-out;
animation-duration: 1s;
animation-fill-mode: backwards;
animation-delay: 0.5s;
animation-name: flash_shake;
}
.pk {
......@@ -32,6 +67,11 @@
z-index: 10;
width: 310px;
height: 200px;
animation-name: shake;
animation-timing-function: ease-out;
animation-fill-mode: backwards;
animation-duration: 1s;
animation-delay: .5s;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment