Skip to content

Commit 0f69b99

Browse files
Merge pull request Dezenix#326 from RAHULBAWA777/patch-64
Cross FAde Animation
2 parents 7ece4ae + ad8d7b8 commit 0f69b99

File tree

3 files changed

+108
-0
lines changed

3 files changed

+108
-0
lines changed

Cross fade animation/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# Cross Fade Animation
3+
Cross Fade Animation using css animation and transition and transforms
4+
5+
## 🚀 About Me
6+
I'm a full stack developer...you can follow me here -https://github.com/RAHULBAWA777
7+
8+
9+
## Run Locally
10+
11+
Clone the project
12+
13+
14+
Start the live server
15+
16+
17+
## Used By
18+
19+
This project is used by the following companies:
20+
21+
- https://github.com/Dezenix/frontend-html-css-js

Cross fade animation/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Cross Fade animation</title>
8+
<link rel="stylesheet" href="style.css">
9+
</head>
10+
<body>
11+
<div class="container">
12+
<span>D</span>
13+
<span>E</span>
14+
<span>Z</span>
15+
<span>E</span>
16+
<span>N</span>
17+
<span>I</span>
18+
<span>X</span>
19+
</div>
20+
</body>
21+
</html>

Cross fade animation/style.css

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
2+
body{
3+
display: flex;
4+
justify-content: center;
5+
align-items: center;
6+
margin-top: 20%;
7+
}
8+
.container{
9+
position: absolute;
10+
margin: auto;
11+
width: 100%;
12+
text-align: center;
13+
height: fit-content;
14+
font-size:80px;
15+
}
16+
17+
.container span{
18+
display: inline-block;
19+
color: transparent;
20+
text-shadow: 0px 0px 0px black;
21+
animation-duration: 5s;
22+
animation-iteration-count: infinite;
23+
}
24+
25+
.container span:nth-child(1){
26+
animation-name: fadeleft;
27+
}
28+
.container span:nth-child(2){
29+
animation-name: faderight;
30+
animation-delay: .5s;
31+
}
32+
.container span:nth-child(3){
33+
animation-name: fadeleft;
34+
animation-delay: .8s;
35+
}
36+
.container span:nth-child(4){
37+
animation-name: fadeleft;
38+
animation-delay: 1.1s;
39+
}
40+
.container span:nth-child(5){
41+
animation-name: faderight;
42+
animation-delay: 1.4s;
43+
}
44+
.container span:nth-child(6){
45+
animation-name: fadeleft;
46+
animation-delay: 1.7s;
47+
}
48+
.container span:nth-child(7){
49+
animation-name: faderight;
50+
animation-delay: 2s;
51+
}
52+
53+
@keyframes fadeleft{
54+
50%{
55+
transform: skew(50deg) translateY(-200%);
56+
text-shadow: 0px 0px 50px;
57+
opacity: 0;
58+
}
59+
}
60+
@keyframes faderight{
61+
50%{
62+
transform: skew(-50deg) translateY(-200%);
63+
text-shadow: 0px 0px 50px;
64+
opacity: 0;
65+
}
66+
}

0 commit comments

Comments
 (0)