diff options
author | Tayane Fernandes <tayane.rmf@gmail.com> | 2017-02-01 13:38:56 -0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-01 13:38:56 -0200 |
commit | c2f1626dbaaaed984c2b7298de5e45d00cbd1071 (patch) | |
tree | 0af1155918275f24c2e1521525fa5ae8cff5a6f6 /web-ui/app/scss/views | |
parent | 66787ad7b6e7dc777343f36519bcfa92e8bd0f1c (diff) | |
parent | 92089f9bb4cb11ad96bed75a6b7875ec7cabddc0 (diff) |
Merge pull request #954 from pixelated/spinner
Add spinner before loading an email or draft.
Diffstat (limited to 'web-ui/app/scss/views')
-rw-r--r-- | web-ui/app/scss/views/_spinner.scss | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/web-ui/app/scss/views/_spinner.scss b/web-ui/app/scss/views/_spinner.scss new file mode 100644 index 00000000..1f8fb099 --- /dev/null +++ b/web-ui/app/scss/views/_spinner.scss @@ -0,0 +1,44 @@ +$offset: 187; +$duration: 1.4s; + +#spinner-section { + margin: auto; + width: 35px; + margin-top: 40%; +} + +#spinner { + animation: rotator $duration linear infinite; +} + +@keyframes rotator { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(270deg); } +} + +#spinner-path { + stroke-dasharray: $offset; + stroke-dashoffset: 0; + transform-origin: center; + animation: + dash $duration ease-in-out infinite, + colors ($duration*4) ease-in-out infinite; +} + +@keyframes colors { + 0% { stroke: $dark_blue; } + 50% { stroke: $middle_blue; } + 100% { stroke: $dark_blue; } +} + +@keyframes dash { + 0% { stroke-dashoffset: $offset; } + 50% { + stroke-dashoffset: $offset/4; + transform:rotate(135deg); + } + 100% { + stroke-dashoffset: $offset; + transform:rotate(450deg); + } +} |