Skip to content
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

added text animation #132

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
23 changes: 23 additions & 0 deletions assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
padding: 0;
}


.container {
max-width: 95vw;
font-family: 'Ubuntu', sans-serif;
Expand All @@ -31,6 +32,28 @@
transition: 0.3s all;
font-size: 28px;
}

#animatext{
padding-left: 6em;
margin-bottom: 1.3em;
text-align: center;
width: 0ch;
overflow: hidden;
white-space: nowrap;
animation: text 6s steps(18) infinite alternate;
border-right: 3px solid black;
font-size: 60px;
}

@keyframes text{
0%{
width: 0ch;
}
50%{
width: 18ch;
}
}

.hover-line{
color: #ffff;
margin: 8px;
Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
</nav>
<hr>
</header>
<h1 id="animatext">Om Poly Industries</h1>
<main class="min-h-screen ">
<section class="section1" id="home">
<div class="flex">
Expand All @@ -56,7 +57,7 @@ <h1 class="my-1 text-center">The Best Production for you in your city. Contact N
</nav>
<hr>
</header>
<main class="min-h-screen ">
<main class="min-h-screen">
<section class="section1" id="about">
<div class="flex">
<div class="topleft flex items-center flex-col justify-center px-2">
Expand Down