Skip to content

Commit b99fa07

Browse files
committed
feat: add transparency fade to background title
A slight transparency fade prevents descenders from interfering with the foreground text.
1 parent cb7254d commit b99fa07

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/features/TitleHero/TitleHero.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
line-height: 1;
2424
margin-bottom: -100px;
2525
/* padding-bottom: 5rem; */
26+
-webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
27+
mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
2628
}
2729

2830
@media (min-width: 768px) {

0 commit comments

Comments
 (0)