diff --git a/TODO.md b/TODO.md index 44a0b85..7db81c2 100644 --- a/TODO.md +++ b/TODO.md @@ -1,5 +1,6 @@ ## Galleries -* Use query strings to specify index of selected gallery - can update on navigating galleries +* scroll to correct gallery when query parameter changes on galleries page +* also do same for thumbnail selected ## Menu * Proper background images for hover effect diff --git a/assets/scss/style.scss b/assets/scss/style.scss index eff3333..1c6b3b3 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -119,3 +119,25 @@ background-color: rgba($color__primary-100, .7); } +.selected-indicator { + &::before { + content: ''; + display: block; + position: absolute; + width: 100%; + height: 100%; + top: 0; + left: 0; + + transition: opacity 1s; + opacity: 0; + + border: 1px solid $color__neutral-700;; + } + + &.is-active::before { + transition: opacity 2s .2s; + opacity: 1; + } +} + diff --git a/components/GalleryFeatured.vue b/components/GalleryFeatured.vue index 187c50e..2b327e6 100644 --- a/components/GalleryFeatured.vue +++ b/components/GalleryFeatured.vue @@ -1,7 +1,7 @@