Skip to content

Commit

Permalink
Merge pull request #55 from Dhavisco/title-animation
Browse files Browse the repository at this point in the history
added Animation to Title
  • Loading branch information
amrit03b authored Oct 16, 2023
2 parents a4dda02 + 244a61a commit b9a5c82
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,28 @@ html *

#titled{
font-size: xx-large;
}
position: relative;
text-decoration: none;
transition: 0.6s;

}
/* Added Animation to the title */
#titled::before{
content: '';
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
background:#f8f9fa;
animation: showRight 1s ease forwards;
animation-delay: .4s;
}
/* Added Animation to the title */
a #titled:hover{
color: black;
opacity: 0.8;
}
.navbar {
background-color: #FFC0CB; /* Pink background color for the navbar */
}
Expand Down Expand Up @@ -39,6 +59,7 @@ html *
color: #C71585; /* Darker pink color on click */
}


/* Navbar styles (same as before) */

#registerButton{
Expand Down Expand Up @@ -135,6 +156,13 @@ html *
animation: gradient-animation 18s ease infinite;
}

/* KEYFRAMES ANIMATION */
@keyframes showRight {
100% {
width: 0;
}
}

@keyframes gradient-animation {
0% {
background-position: 0% 50%;
Expand Down

0 comments on commit b9a5c82

Please sign in to comment.