forked from MakingSense-EU/onboarding-app
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spinner made in place of button for sync
- Loading branch information
Lucas Pena
authored and
Lucas Pena
committed
Dec 6, 2016
1 parent
ecc1885
commit 15625cb
Showing
8 changed files
with
73 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
$offset: 225; | ||
$duration: 1.5s; | ||
|
||
|
||
.spinnerWrapper { | ||
&.hide{ | ||
display: none; | ||
} | ||
&.show { | ||
display: block; | ||
.spinner { | ||
animation: rotator $duration linear infinite; | ||
} | ||
} | ||
} | ||
|
||
@keyframes rotator { | ||
0% { | ||
transform: rotate(0deg); | ||
} | ||
100% { | ||
transform: rotate(250deg); | ||
} | ||
} | ||
|
||
.path { | ||
stroke-dasharray: $offset; | ||
stroke-dashoffset: 0; | ||
transform-origin: center; | ||
animation: dash $duration ease-in-out infinite, colors ($duration*3) ease-in-out infinite; | ||
} | ||
|
||
@keyframes colors { | ||
0% { stroke: #4AA3DF; } | ||
33% { stroke: #FB7E00; } | ||
66% { stroke: #61CD72; } | ||
100% { stroke: #4AA3DF; } | ||
} | ||
|
||
@keyframes dash { | ||
0% { | ||
stroke-dashoffset: $offset; | ||
} | ||
50% { | ||
stroke-dashoffset: $offset/4; | ||
transform: rotate(135deg); | ||
} | ||
100% { | ||
stroke-dashoffset: $offset; | ||
transform: rotate(450deg); | ||
} | ||
} |
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
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