Skip to content

Commit

Permalink
Add transition between font sizes in header
Browse files Browse the repository at this point in the history
  • Loading branch information
lumi200 committed Dec 21, 2023
1 parent 1826369 commit 16bddad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ header {
top: 0;
}

.header-title{
transition: font-size .2s ease;
}

.header-subtitle {
position: absolute;
top: 80%;
Expand All @@ -131,6 +135,9 @@ header {
pointer-events: none;
}

.scrolled .header-title {
font-size: 2em;
}

section {
border-style: solid;
Expand Down

0 comments on commit 16bddad

Please sign in to comment.