diff --git a/assets/scss/4-base/_06-header.scss b/assets/scss/4-base/_06-header.scss index 86d2ac3..86b1ccd 100644 --- a/assets/scss/4-base/_06-header.scss +++ b/assets/scss/4-base/_06-header.scss @@ -4,8 +4,8 @@ .header { position: relative; - top: 0; background-color: $color-bg-head; + transition: .15s all; } .header--home { diff --git a/assets/scss/8-rwd/_rwd-reduced-motion.scss b/assets/scss/8-rwd/_rwd-reduced-motion.scss index 4afc38f..336f29f 100644 --- a/assets/scss/8-rwd/_rwd-reduced-motion.scss +++ b/assets/scss/8-rwd/_rwd-reduced-motion.scss @@ -26,4 +26,22 @@ .coverGlitchSimpleHover:hover { animation: none; } + + + /* Experimental View Transition API + -------------------------------------------------------------- */ + + html, + .header__logo, + .header__tagline, + .navigation__item, + .catalog-item__visual, + .catalog-item__album, + .catalog-item__artist, + .album-cover__visual + .album-name + .album-artist { + view-transition-name: none !important; + } + } diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index cd27a6a..8a2eece 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -33,6 +33,8 @@ {{ end }} + + {{ with .Site.GetPage "/" }} {{ with .OutputFormats.Get "rss" }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 27c32f4..fedee3c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -41,7 +41,10 @@ class="album-cover__visual" width="500" height="500" - style="background-image: url(data:{{ $placeholder.MediaType }};base64,{{ $placeholder.Content | base64Encode }});" + style=" + background-image: url(data:{{ $placeholder.MediaType }};base64,{{ $placeholder.Content | base64Encode }}); + view-transition-name: album_cover_{{ .File.BaseFileName }}; + " src="{{ $coverMedium.Permalink }}" loading="lazy" alt="{{ .Title }} album's cover" @@ -49,8 +52,8 @@ >