diff --git a/libs/ui/src/lib/chapter/chapter.scss b/libs/ui/src/lib/chapter/chapter.scss index c7e4279..2ca8ee1 100644 --- a/libs/ui/src/lib/chapter/chapter.scss +++ b/libs/ui/src/lib/chapter/chapter.scss @@ -36,7 +36,6 @@ transform: translateZ(0); z-index: 4; background: 50% 50% / cover; - filter: saturate(.8); } &--back { @@ -50,4 +49,24 @@ z-index: 2; } } -} \ No newline at end of file +} + +.back { + z-index: -1; +} + +.fade-in-scale { + animation: fade-in-scale-down 5s linear 1; +} + +@keyframes fade-in-scale-down { + 0% { + scale: 1.2; + filter: blur(7px) brightness(2) grayscale(1); + } + + 100% { + scale: 1; + filter: blur(0) brightness(1) grayscale(0); + } +} diff --git a/libs/ui/src/lib/chapter/chapter.tsx b/libs/ui/src/lib/chapter/chapter.tsx index b2cfa32..b062c8b 100644 --- a/libs/ui/src/lib/chapter/chapter.tsx +++ b/libs/ui/src/lib/chapter/chapter.tsx @@ -36,7 +36,10 @@ export const ChapterComponent = (props: Chapter) => { const renderChapterGroups = () => { return props.groups.map((group, index) => -