generated from uclaacm/teach-la-ts-react-starter
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add animated checkmark to FinishCode and KhanCard * moved checkmark stylings to Checkmark.scss
- Loading branch information
1 parent
4c4d5a3
commit 59f3de5
Showing
4 changed files
with
96 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
// Colors | ||
$green: #7ac142; | ||
$white: #fff; | ||
|
||
// Misc | ||
$curve: cubic-bezier(0.65, 0, 0.45, 1); | ||
|
||
.checkmark { | ||
animation: fill 0.4s ease-in-out 0.4s forwards, | ||
scale 0.3s ease-in-out 0.9s both; | ||
border-radius: 50%; | ||
box-shadow: inset 0 0 0 $green; | ||
display: block; | ||
height: 25px; | ||
stroke: $white; | ||
stroke-miterlimit: 10; | ||
stroke-width: 4; | ||
width: 25px; | ||
} | ||
|
||
.checkmark-circle { | ||
animation: stroke 0.6s $curve forwards; | ||
fill: none; | ||
stroke: $green; | ||
stroke-dasharray: 166; | ||
stroke-dashoffset: 166; | ||
stroke-miterlimit: 10; | ||
stroke-width: 2; | ||
} | ||
|
||
.checkmark-check { | ||
animation: stroke 0.3s $curve 0.8s forwards; | ||
stroke-dasharray: 48; | ||
stroke-dashoffset: 48; | ||
transform-origin: 50% 50%; | ||
} | ||
|
||
@keyframes stroke { | ||
100% { | ||
stroke-dashoffset: 0; | ||
} | ||
} | ||
|
||
@keyframes scale { | ||
0%, | ||
100% { | ||
transform: none; | ||
} | ||
|
||
50% { | ||
transform: scale3d(1.1, 1.1, 1); | ||
} | ||
} | ||
|
||
@keyframes fill { | ||
100% { | ||
box-shadow: inset 0 0 0 30px $green; | ||
} | ||
} |