aboutsummaryrefslogtreecommitdiffstats
path: root/scss
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-11-26 09:56:37 +0000
committers-ol <s-ol@users.noreply.github.com>2018-11-26 09:56:37 +0000
commit7f48f4f81d1acf3b75de8ca9e5dc9fac8a00e73b (patch)
tree356cda36a59998ab8e29a028967bd67bef757786 /scss
parentremove uneccessary mmm/tpl (diff)
downloadmmm-7f48f4f81d1acf3b75de8ca9e5dc9fac8a00e73b.tar.gz
mmm-7f48f4f81d1acf3b75de8ca9e5dc9fac8a00e73b.zip
svg logo + animation
Diffstat (limited to 'scss')
-rw-r--r--scss/_header.scss39
1 files changed, 28 insertions, 11 deletions
diff --git a/scss/_header.scss b/scss/_header.scss
index 5613829..6e2da1f 100644
--- a/scss/_header.scss
+++ b/scss/_header.scss
@@ -9,8 +9,9 @@ header {
h1 {
display: flex;
justify-content: space-around;
- align-items: baseline;
+ align-items: center;
margin: 0;
+ height: 5rem;
font-size: 4rem;
font-weight: 200;
@@ -22,19 +23,35 @@ header {
.bold {
font-weight: 400;
}
- }
- .sun {
- font-style: normal;
- font-weight: 800;
- font-size: 0.7em;
- vertical-align: -0.04em;
+ .sun {
+ height: 100%;
+ stroke: currentColor;
+ fill: currentColor;
+
+ .out {
+ animation: spin 2s;
+ animation-iteration-count: 1;
+ }
- transform: perspective(100rem) rotateY(0deg);
- transition: transform 100ms;
+ .in {
+ animation: size 2s;
+ animation-iteration-count: 1;
+ }
- body.loading & {
- transform: perspective(100rem) rotateY(90deg);
+ &.spin circle {
+ animation: none;
+ }
}
}
}
+
+@keyframes spin {
+ 0% { transform: perspective(100rem) rotate3d(0.5, 1, 0, 0turn); }
+ 100% { transform: perspective(100rem) rotate3d(0.5, 1, 0, 1turn); }
+}
+
+@keyframes size {
+ 0%, 100% { transform: scale(1); }
+ 40%, 60% { transform: scale(1.8); }
+}