diff --git a/invite/index.html b/invite/index.html index 8a37b47..4e23074 100644 --- a/invite/index.html +++ b/invite/index.html @@ -5,15 +5,26 @@
-

0

+

18. august

-

1

+

Oled oodatud

-

2

+

Minu

+ +
+ +
+

Sünnipäevale

+
+ +
+

Näeme Lapikude kontoris

+

Akadeemia tee 5

+ :wq!
diff --git a/invite/me.jpg b/invite/me.jpg new file mode 100644 index 0000000..1a44843 Binary files /dev/null and b/invite/me.jpg differ diff --git a/invite/style.scss b/invite/style.scss index 9646f61..dedf8b4 100644 --- a/invite/style.scss +++ b/invite/style.scss @@ -1,8 +1,9 @@ $foreground: #FFFFFF; $background: #000000; -$animation-length: 3s; -$animation-delay: $animation-length - 0.3; +$animation-length: 4s; +$animation-delay: $animation-length - 1.5; +$slide-count: 5; * { box-sizing: border-box; @@ -17,20 +18,28 @@ body { margin:0; padding:0; overflow:hidden; + animation: colorchange 10s alternate infinite; } .container { height:100vh; width: 100vw; - @for $child from 0 to 3 { + @for $child from 0 to $slide-count - 1 { >:nth-child(#{$child+1}) { animation-delay: $animation-delay*$child; animation-duration: $animation-length; - animation-name: slide-in; + animation-name: slide-in-out; animation-fill-mode: both; } } + + >:nth-child(#{$slide-count}) { + animation-delay: $animation-delay* ($slide-count - 1); + animation-duration: $animation-length; + animation-name: slide-in; + animation-fill-mode: both; + } } .slide { @@ -40,14 +49,15 @@ body { display: flex; align-items: center; justify-content: center; + flex-direction: column; } -@keyframes slide-in { +@keyframes slide-in-out { 0% { - transform: translateY(-50px); + transform: translateY(50px); opacity: 0; } - 10%, 90% { + 30%, 60% { transform: translateY(0); opacity: 1; } @@ -57,3 +67,20 @@ body { opacity: 0; } } + +@keyframes slide-in { + 0% { + transform: translateY(50px); + opacity: 0; + } + 30%, 100% { + transform: translateY(0); + opacity: 1; + } +} + +@keyframes colorchange { + 0% {background: #002b4a;} + 50% {background: #01004b;} + 100% {background: #30004b;} +}