Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from kirtiraj22/main
Added sample 8
- Loading branch information
Showing
4 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
|
||
|
||
## CSS_SAMPLE_8 | ||
Text Animation | ||
|
||
![Logo](https://github.com/mailtodanish/CSS-Samples/blob/main/CSS_SAMPLE_8/../../../../../../../image/img.gif) | ||
|
||
|
||
|
||
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="style.css"> | ||
<title>Sample 8</title> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
<div class="animated-text"> | ||
<li><span class="main">Self</span> Taught</li> | ||
<li><span class="main">Full</span> Stacker!</li> | ||
<li><span class="main">Data</span> Scientist!</li> | ||
<li><span class="main">Linux </span> Hobbist!</li> | ||
<li><span class="main">Open</span> Sourcer!</li> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&family=Montserrat:ital,wght@0,100;0,300;0,600;1,100;1,500&family=Nunito:wght@400;500;700&family=Poppins:ital,wght@0,100;0,200;0,400;0,600;1,100;1,200&display=swap'); | ||
*{ | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
font-family: 'Poppins' , sans-serif; | ||
} | ||
|
||
body{ | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
min-height: 100vh; | ||
background: rgb(26, 23, 23); | ||
} | ||
|
||
.container{ | ||
display: inline-flex; | ||
} | ||
|
||
|
||
.container .animated-text{ | ||
height: 90px; | ||
line-height: 90px; | ||
overflow: hidden; | ||
} | ||
|
||
.animated-text li{ | ||
font-size: 60px; | ||
color: #fff; | ||
list-style-type: none; | ||
font-weight: 700; | ||
top: 0; | ||
animation:slide 6s steps(4) infinite; | ||
position: relative; | ||
} | ||
.animated-text li .main{ | ||
color: blue; | ||
} | ||
|
||
@keyframes slide{ | ||
100%{ | ||
top:-360px | ||
} | ||
} | ||
|
||
|
||
.animated-text li{ | ||
position: relative; | ||
|
||
} | ||
|
||
.animated-text li::after{ | ||
content: ''; | ||
position: absolute; | ||
height: 100%; | ||
width: 100%; | ||
background: rgb(26, 23, 23); | ||
border-left: 2px solid #fff; | ||
left: 0; | ||
animation: typing 1.5s steps(15) infinite; | ||
} | ||
|
||
@keyframes typing { | ||
100%{ | ||
left: 100%; | ||
margin: 0 -35px 0 35px; | ||
} | ||
} |