Skip to content

Commit

Permalink
Merge pull request #82 from Dimple-Choudhary/main
Browse files Browse the repository at this point in the history
Animated "to-do list" text
  • Loading branch information
Kritika30032002 authored Oct 5, 2023
2 parents 4b98a90 + 14abc25 commit ec228fa
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
alt=""
style="height: 70px; margin-bottom: 20px"
/>
<h1>To Do</h1>
<h1 class="text text-center">To-Do List</h1>

<input type="checkbox" id="modeToggle" class="mode-toggle">
</div>
Expand Down
31 changes: 31 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,37 @@ body.dark-mode .list-group-item {
width: 100%;
height: 100%;
}
.text {
width: 100%;
font-size: 50px;
color: rgb(255, 255, 255);
letter-spacing: 10px;
border-right: 5px solid black;
white-space: nowrap;
animation: typing 3s steps(10), cursor .4s step-end infinite alternate;
overflow: hidden;
animation-fill-mode: forwards;
}

@keyframes cursor {
50% {
border-color: transparent;
}
}

@keyframes typing {
from {
width: 0;
}
to {
width: 30%;
}

}
.text-center{
margin-left: auto;
margin-right: auto ;
}

.main {
position: relative;
Expand Down

0 comments on commit ec228fa

Please sign in to comment.