Skip to content

Smooth transition from hero to page background #1381

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/styles/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@
256px 256px;
}

/* Transition hero background grid smoothly to page background color. */
.hero-bg::after {
content: '';
position: absolute;
inset: 70% 0 0;
background: linear-gradient(transparent, var(--sl-color-bg));
}

.hero > img {
opacity: 0.3;
animation: 3s intro;
Expand Down