Skip to content

Commit

Permalink
💄 Gradient #2014
Browse files Browse the repository at this point in the history
  • Loading branch information
padms committed Feb 2, 2024
1 parent 69dc7b4 commit 3a41414
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions web/components/src/Backgrounds/ImageBackgroundContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ const DEFAULT_MAX_WIDTH = 1920

const AnimationWrapper = styled.div`
/* Create View Timeline */
//height: 100vh;
background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(255, 255, 255, 1) 70%);
section {
width: 40vw;
margin-right: 0;
padding: var(--space-3xLarge) var(--space-3xLarge);
}
display: flex;
view-timeline-name: --revealing-image;
view-timeline-axis: block;
Expand All @@ -35,14 +41,21 @@ const AnimationWrapper = styled.div`
animation-timeline: --revealing-image;
/* Tweak range when effect should run*/
animation-range: entry 25% cover 50%;
animation-range: cover 0% cover 100%;
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
20% {
opacity: 1;
}
80% {
opacity: 1;
}
100% {
opacity: 0;
}
}
`
export const ImageBackgroundContainer = forwardRef<HTMLDivElement, ImageBackgroundContainerProps>(
Expand Down

0 comments on commit 3a41414

Please sign in to comment.