Skip to content

Commit

Permalink
Merge pull request #7 from kirtiraj22/main
Browse files Browse the repository at this point in the history
Added sample 8
  • Loading branch information
mailtodanish committed Oct 7, 2022
2 parents 04d99c7 + 9837dfb commit fd54260
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CSS_SAMPLE_8/README.md
@@ -0,0 +1,11 @@



## CSS_SAMPLE_8
Text Animation

![Logo](https://github.com/mailtodanish/CSS-Samples/blob/main/CSS_SAMPLE_8/../../../../../../../image/img.gif)




Binary file added 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.
24 changes: 24 additions & 0 deletions CSS_SAMPLE_8/index.html
@@ -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>



69 changes: 69 additions & 0 deletions CSS_SAMPLE_8/style.css
@@ -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;
}
}

0 comments on commit fd54260

Please sign in to comment.