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

i have successfully added text animation to the text at home page ! #1560

Merged
merged 5 commits into from
Oct 22, 2024
Merged
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
Binary file added assets/image/back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added css/img/back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 25 additions & 13 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,9 @@ body {
font-weight: bold;
line-height: 1.3em;
}
.slider .list .item .type{
color: #14ff72cb;

.slider .list .item .type.h1{
color: #efefefcb;
}
.slider .list .item .button{
display: grid;
Expand Down Expand Up @@ -296,23 +297,34 @@ body {
.slider .list .item:nth-child(1) .content .description,
.slider .list .item:nth-child(1) .content .buttons
{
transform: translateY(50px);
filter: blur(20px);
opacity: 0;
animation: showContent .5s 1s linear 1 forwards;
transform: translateY(50px);
color: transparent;
-webkit-text-stroke: 1px white;
background: url(img/back.png);
-webkit-background-clip: text;
background-position: 0 0;
filter: blur(20px);
opacity: 0;
animation: showContent .5s 1s linear 1 forwards,back 20s linear infinite;
}
@keyframes showContent{
to{
transform: translateY(0px);
filter: blur(0px);
opacity: 1;
}
to{
transform: translateY(0px);
filter: blur(0px);
opacity: 1;
}
}
@keyframes back{
100%{
background-position: 2000px 0 ;
}
}

.slider .list .item:nth-child(1) .content .title{
animation-delay: 0.4s !important;
animation-delay: 0.4s !;
}
.slider .list .item:nth-child(1) .content .type{
animation-delay: 0.6s !important;
animation-delay: 0.6s ;
}
.slider .list .item:nth-child(1) .content .description{
animation-delay: 0.8s !important;
Expand Down
Binary file added images/back.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
background-color: #6c757d;
}
}

</style>


Expand Down Expand Up @@ -83,8 +84,8 @@ <h3><span>Open</span> Projects</h3>
<img src="./images/air ballon game.jpg" alt="">

<div class="content">
<div class="title">Air Ballon </div>
<div class="type">Game</div>
<div class="t1"><h1>Air Ballon</h1> </div>
<div class="t2"><h1>Game</h1></div>
<div class="description">
A simple air ballon game.......
</div>
Expand Down
Loading