diff --git a/sass/_logo.scss b/sass/_logo.scss new file mode 100644 index 00000000..04dad9af --- /dev/null +++ b/sass/_logo.scss @@ -0,0 +1,71 @@ + +svg.logo { + width: 100vw; + height: 100vh; + + animation: fade-in; + animation-timing-function:ease-in; + animation-delay: .25s; + animation-iteration-count: 1; + animation-fill-mode: both; + animation-duration: 1.5s; + + #bear { + fill: none; + stroke: white; + + & path { + opacity: 0; + stroke-dashoffset: 4000; + stroke-dasharray: 4000; + + animation: delayed-stroke-in; + animation-timing-function:ease-in; + animation-delay: 3s; + animation-iteration-count: 1; + animation-fill-mode: both; + animation-duration: 4.5s; + } + + } + + #star-links { + stroke: #808285; + stroke-miterlimit: 10; + stroke-width: 0.75px; + + line { + opacity: 0; + animation: twinkle; + animation-timing-function: ease-in; + animation-delay: 3s; + animation-iteration-count: 1; + animation-fill-mode: both; + } + + @for $i from 1 through 20 { + line:nth-child(1n + #{$i}) { + animation-duration: #{random(10) * 2}s; + animation-timing-function: cubic-bezier(#{random()},#{random()},#{random()},#{random()}); + } + } + } + + #stars, #starfield { + fill: #808285; + + circle { + opacity: 0; + animation: twinkle; + animation-fill-mode: both; + animation-iteration-count: infinite; + } + + @for $i from 1 through 20 { + circle:nth-child(20n + #{$i}) { + animation-duration: #{random(10) * 2}s; + animation-timing-function: cubic-bezier(#{random()},#{random()},#{random()},#{random()}); + } + } + } +} diff --git a/sass/main.scss b/sass/main.scss index e16e5cd1..4fede2c5 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -1,5 +1,6 @@ @import 'reset'; +@import 'logo'; @import 'syntax-highlighting'; @import 'text'; @import 'figure'; @@ -33,77 +34,6 @@ div#splash { background: var(--gradient-splash-background); } -svg.logo { - width: 100vw; - height: 100vh; - - animation: fade-in; - animation-timing-function:ease-in; - animation-delay: .25s; - animation-iteration-count: 1; - animation-fill-mode: both; - animation-duration: 1.5s; - - #bear { - fill: none; - stroke: white; - - & path { - opacity: 0; - stroke-dashoffset: 4000; - stroke-dasharray: 4000; - - animation: delayed-stroke-in; - animation-timing-function:ease-in; - animation-delay: 3s; - animation-iteration-count: 1; - animation-fill-mode: both; - animation-duration: 4.5s; - } - - } - - #star-links { - stroke: #808285; - stroke-miterlimit: 10; - stroke-width: 0.75px; - - line { - opacity: 0; - animation: twinkle; - animation-timing-function: ease-in; - animation-delay: 3s; - animation-iteration-count: 1; - animation-fill-mode: both; - } - - @for $i from 1 through 20 { - line:nth-child(1n + #{$i}) { - animation-duration: #{random(10) * 2}s; - animation-timing-function: cubic-bezier(#{random()},#{random()},#{random()},#{random()}); - } - } - } - - #stars, #starfield { - fill: #808285; - - circle { - opacity: 0; - animation: twinkle; - animation-fill-mode: both; - animation-iteration-count: infinite; - } - - @for $i from 1 through 20 { - circle:nth-child(20n + #{$i}) { - animation-duration: #{random(10) * 2}s; - animation-timing-function: cubic-bezier(#{random()},#{random()},#{random()},#{random()}); - } - } - } -} - div#hero-wrapper { position: fixed; diff --git a/templates/partials/logo.html b/templates/partials/logo.html index 5fe8c45c..5966dc30 100644 --- a/templates/partials/logo.html +++ b/templates/partials/logo.html @@ -1,8 +1,11 @@