Skip to content

Commit

Permalink
Added typewriter effect for header title
Browse files Browse the repository at this point in the history
  • Loading branch information
“Sophie committed Mar 20, 2024
1 parent a794830 commit 12d5ffc
Show file tree
Hide file tree
Showing 2 changed files with 591 additions and 478 deletions.
74 changes: 51 additions & 23 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,61 @@ html {
}
}

/* Initially hide animated icon */
.ts-animated-icon {
display: none;
}
/* Header Titel Effect*/

/* Show animated icon on card hover */
.ts-hover-trigger:hover .ts-static-icon {
display: none;
}
#changing-word {
display: block;
}

.ts-hover-trigger:hover .ts-animated-icon {
display: block;
}
.letter {
display: inline-block;
position: relative;
transform: translateZ(25px);
transform-origin: 0% 50% 25px;
}

.icon-container {
height: 20px;
}
.letter.out {
visibility: hidden;
opacity: 0;
}

.letter.behind {
transform: rotateX(-90deg);
}

.fade-out {
opacity: 0;
transition: opacity 0.5s ease-in-out;
}
.letter.in {
visibility: visible;
opacity: 1;
transition: visibility 0s linear 0.38s, opacity 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Initially hide animated icon */
.ts-animated-icon {
display: none;
}

.fade-in {
opacity: 1;
transition: opacity 0.5s ease-in-out;
}
/* Show animated icon on card hover */
.ts-hover-trigger:hover .ts-static-icon {
display: none;
}

.ts-hover-trigger:hover .ts-animated-icon {
display: block;
}

.icon-container {
height: 20px;
}

.fade-out {
opacity: 0;
transition: opacity 0.5s ease-in-out;
}

.fade-in {
opacity: 1;
transition: opacity 0.5s ease-in-out;
}

/* ABOUT US - Button with Icon Animation */

Expand Down Expand Up @@ -80,7 +108,7 @@ html {
}

}


/* DOCUMENT - List item marker */

Expand Down
Loading

0 comments on commit 12d5ffc

Please sign in to comment.