Skip to content

Commit

Permalink
Add gradient mask to remove hard edge on background blur
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett committed Nov 22, 2024
1 parent c9808f8 commit 57a5e27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dotcom-rendering/src/components/FeatureCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ const overlayStyles = css`
flex-direction: column;
justify-content: flex-start;
flex-grow: 1;
padding: ${space[2]}px;
row-gap: ${space[2]}px;
padding: 72px ${space[2]}px ${space[2]}px;
mask-image: linear-gradient(180deg, transparent 0, #000 64px);
backdrop-filter: blur(12px) brightness(0.7);
`;

Expand Down

0 comments on commit 57a5e27

Please sign in to comment.