File tree Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Expand file tree Collapse file tree 2 files changed +84
-0
lines changed Original file line number Diff line number Diff line change 1+ < html  lang ="en "> 
2+  < head > 
3+  < meta  charset ="UTF-8 " /> 
4+  < meta  http-equiv ="X-UA-Compatible " content ="IE=edge " /> 
5+  < meta  name ="viewport " content ="width=device-width, initial-scale=1.0 " /> 
6+  < title > CSS Rotating Text</ title > 
7+  < link  rel ="stylesheet " href ="style.css " /> 
8+  </ head > 
9+  < body > 
10+  < div  class ="outer-headings "> 
11+  < h1 > 
12+  I am,
13+  < div  class ="inner-headings "> 
14+  < span > 
15+  UI/UX Designer < br  /> 
16+  Front-End Developer < br  /> 
17+  Back-End Developer < br  /> 
18+  Full-Stack Developer < br  /> 
19+  </ span > 
20+  </ div > 
21+  </ h1 > 
22+  </ div > 
23+  </ body > 
24+ </ html > 
Original file line number Diff line number Diff line change 1+ *   {
2+  font-family :  sans-serif;
3+  margin :  0 ;
4+  padding :  0 ;
5+ }
6+ 
7+ .outer-headings  {
8+  height :  100vh  ;
9+  display :  flex;
10+  flex-direction :  column;
11+  justify-content :  center;
12+  align-items :  center;
13+ }
14+ 
15+ h1  {
16+  font-size :  45px  ;
17+ }
18+ 
19+ .inner-headings  {
20+  border :  0px   solid # ddd ;
21+  height :  50px  ;
22+  line-height :  50px  ;
23+  font-size :  45px  ;
24+  text-transform :  uppercase;
25+  overflow :  hidden;
26+ }
27+ 
28+ .inner-headings  span  {
29+  position :  relative;
30+  color :  crimson;
31+  animation :  animation 10s   ease infinite;
32+ }
33+ 
34+ @keyframes  animation {
35+  0%  , 
36+  100%   {
37+  top :  0 ;
38+  }
39+  20%   {
40+  top :  0 ;
41+  }
42+  25%   {
43+  top :  -50px  ;
44+  }
45+  45%   {
46+  top :  -50px  ;
47+  }
48+  50%   {
49+  top :  -100px  ;
50+  }
51+  70%   {
52+  top :  -100px  ;
53+  }
54+  75%   {
55+  top :  -150px  ;
56+  }
57+  95%   {
58+  top :  -150px  ;
59+  }
60+ }
                                 You can’t perform that action at this time. 
               
                  
0 commit comments