Skip to content

Commit 6f85da4

Browse files
committed
text Switcher added with readme
1 parent 81d0f73 commit 6f85da4

File tree

3 files changed

+108
-0
lines changed

3 files changed

+108
-0
lines changed

text Switcher/README.md

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

text Switcher/index.html

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content=
7+
"width=device-width, initial-scale=1.0">
8+
<title>Text Changer</title>
9+
<link rel="stylesheet" href="style.css">
10+
</head>
11+
12+
<body>
13+
<div id=container>
14+
GSSoC
15+
<div id=change>
16+
<div><div>Dezenix</div></div>
17+
<div><div>github</div></div>
18+
<div><div>repo</div></div>
19+
</div>
20+
😄
21+
</div>
22+
23+
</body>
24+
25+
</html>

text Switcher/style.css

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
body {
2+
margin:0;
3+
padding: 0;
4+
text-align:center;
5+
}
6+
7+
#container {
8+
color:rgb(255, 123, 0);
9+
font-size:40px;
10+
margin-top:500px;
11+
position:fixed;
12+
display:block;
13+
text-transform: uppercase;
14+
width:100%;
15+
bottom:45%;
16+
}
17+
18+
#change {
19+
height:80px;
20+
overflow:hidden;
21+
}
22+
23+
#change > div > div {
24+
color:#fff;
25+
padding:10px 15px;
26+
height:50px;
27+
margin-bottom:45px;
28+
display:inline-block;
29+
}
30+
31+
#change div:first-child {
32+
animation: change 5s linear infinite;
33+
}
34+
35+
#change div div {
36+
background:#0069fc;
37+
}
38+
#change div:first-child div {
39+
background:#d2f34e;
40+
}
41+
#change div:last-child div {
42+
background:#fc5e7d;
43+
}
44+
45+
@keyframes change {
46+
0% {margin-top:-270px;}
47+
5% {margin-top:-180px;}
48+
33% {margin-top:-180px;}
49+
38% {margin-top:-90px;}
50+
66% {margin-top:-90px;}
51+
71% {margin-top:0px;}
52+
99.99% {margin-top:0px;}
53+
100% {margin-top:-270px;}
54+
}
55+
56+
p {
57+
position:fixed;
58+
width:100%;
59+
bottom:40px;
60+
font-size:4rem;
61+
color:rgb(32, 29, 29);
62+
margin-top:400px;
63+
}

0 commit comments

Comments
 (0)