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) => -
+
+ {group.background &&
+ +
} {group.content && renderChapterContent(group)}
) } @@ -74,7 +77,7 @@ export const ChapterComponent = (props: Chapter) => { return (
-
+
<Chip onClick={() => startAudio()} label={volume ? "Ton aus" : "Ton an"} /> <Scrollicon/> @@ -84,4 +87,4 @@ export const ChapterComponent = (props: Chapter) => { </div> ); }; -export default ChapterComponent; \ No newline at end of file +export default ChapterComponent; diff --git a/libs/ui/src/lib/image/image.scss b/libs/ui/src/lib/image/image.scss index a00b406..4102280 100644 --- a/libs/ui/src/lib/image/image.scss +++ b/libs/ui/src/lib/image/image.scss @@ -16,4 +16,8 @@ img { height:auto; width: 100%; -} \ No newline at end of file +} + +.bg { + opacity: 0.3; +} diff --git a/libs/ui/src/lib/video/video.scss b/libs/ui/src/lib/video/video.scss index 8d23e95..182b8c1 100644 --- a/libs/ui/src/lib/video/video.scss +++ b/libs/ui/src/lib/video/video.scss @@ -1,6 +1,7 @@ video { width: 100%; height: auto; + box-shadow: 5px 5px 5px var(--color-text); } .chapter_video { @@ -34,4 +35,4 @@ video { .play.hide { display: none; -} \ No newline at end of file +}