Add loader

This commit is contained in:
2018-05-08 07:07:07 +10:00
parent 86e66b48fb
commit 4c3c92d991
6 changed files with 84 additions and 2 deletions

View File

@ -51,6 +51,7 @@
@import './objects/main.scss';
@import './objects/_app.scss';
@import './objects/_loader.scss';
@import './objects/_navbar.scss';
@import './objects/_video.scss';

View File

@ -0,0 +1,32 @@
/*
* Loader
* Styles for the animated loader.
*
* Dependencies:
* styles/tools/_transform.scss
*
* Version:
* 1.0.0 - 2018/05/08
*/
.o-loader {
display: block;
width: 32px;
height: 32px;
position: absolute;
left: 50%;
top: 50%;
@include t-translate(-50%, -50%);
&__image {
animation-name: k-loader;
animation-timing-function: cubic-bezier(0.86, 0, 0.07, 1);
animation-iteration-count: infinite;
animation-duration: 1s;
width: 100%;
height: 100%;
> * {
stroke: $s-color--loader;
}
}
}

View File

@ -30,3 +30,6 @@ $s-color--navbar__text: white;
$s-color--navbar__text-hover: #CCC;
$s-color--navbar__bar-hover: $s-color--pastel-blue;
$s-color--navbar__bar-active: $s-color--pastel-green;
//loader
$s-color--loader: #CCC;