Skip to content

Instantly share code, notes, and snippets.

@rajatgeekyants
Created May 4, 2018 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajatgeekyants/1a77cdf44f296f2399d4b63f40a4900f to your computer and use it in GitHub Desktop.
Save rajatgeekyants/1a77cdf44f296f2399d4b63f40a4900f to your computer and use it in GitHub Desktop.
.wincc {
display: flex;
justify-content: center;
height: 100%;
position: relative;
}
.wincc .box {
align-self: center;
width: 250px;
height: 250px;
background-color: #ECECEC;
border: 1px solid #969696;
border-radius: 100%;
animation: wincc-grow 1s forwards;
}
.wincc .check {
align-self: center;
width: 56px;
height: 110px;
transform: rotate(44deg);
position: absolute;
top: 50%;
left: 50%;
margin-left: -50px;
margin-top: -94px;
}
.wincc .check:after {
content: "";
width: 100%;
height: 100%;
border: 4px solid #7FD8F7;
border-left-width: 0;
border-top-width: 0;
animation: wincc-cha 1.2s ease-in-out forwards;
position: absolute;
bottom: 0;
}
.success {
color: #7FD8F7;
}
@keyframes wincc-grow {
0% {
transform: scale(0);
}
100% {
transform: scale(1);
}
}
@keyframes wincc-cha {
0% {
width: 0;
height: 0;
}
50% {
width: 56px;
height: 0;
}
100% {
height: 110px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment