css animated cross mark

Solutions on MaxInterview for css animated cross mark by the best coders in the world

showing results for - "css animated cross mark"
Kayla
01 Nov 2020
1.checkmark__circle {
2  stroke-dasharray: 166;
3  stroke-dashoffset: 166;
4  stroke-width: 2;
5  stroke-miterlimit: 10;
6  stroke: #7ac142;
7  fill: none;
8  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
9}
10.checkmark {
11  width: 56px;
12  height: 56px;
13  border-radius: 50%;
14  display: block;
15  stroke-width: 2;
16  stroke: #fff;
17  stroke-miterlimit: 10;
18  margin: 10% auto;
19  box-shadow: inset 0px 0px 0px #7ac142;
20  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
21}
22.checkmark__check {
23  transform-origin: 50% 50%;
24  stroke-dasharray: 29;
25  stroke-dashoffset: 29;
26  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
27}
28@keyframes stroke {
29  100% {
30    stroke-dashoffset: 0;
31  }
32}
33@keyframes scale {
34  0%, 100% {
35    transform: none;
36  }
37  50% {
38    transform: scale3d(1.1, 1.1, 1);
39  }
40}
41@keyframes fill {
42  100% {
43    box-shadow: inset 0px 0px 0px 30px #7ac142;
44  }
45}