How to make running text using HTML and CSS.[Source Code]
To make this website, you would like to make two files: an HTML file, a CSS file. First, create an HTML file with the name of index.html and remember, you have to create a file with a .html extension.
/**
Hello Future Developer Thanks for Using learningrobo.com,
Check our website Regularly For New Snippets Post.
Share & Support us
**/
@import url('https://fonts.googleapis.com/css2?family=Yantramanav&display=swap');
*{
box-sizing: border-box;
}
body{
margin:0%;
background-color:rgb(255, 255, 255);
}
.parent{
width: 90%; /* Set the container's width to 80% of its parent */
height:70px;
margin: 0 auto; /* Center the container horizontally */
overflow: hidden; /* Hide overflowing content within the container */
background-color:rgb(39, 39, 39);
border-radius:5px;
position: relative;
top:10px;
padding:10px;
box-shadow:0px 0px 17px #0f0f0f60;
}
.container{
width: 100%; /* Set the container's width to 80% of its parent */
height:50px;
margin: 0 auto; /* Center the container horizontally */
overflow: hidden; /* Hide overflowing content within the container */
background-color:rgb(36, 36, 36);
border-radius:5px;
padding:15px 0px;
position: relative;
box-shadow:0px 0px 17px #000000 inset;
}
.running-letters{
white-space: nowrap; /* Prevent line breaks */
animation: run-letters 15s linear infinite; /* Define the animation */
font-weight:400;
font-size:20px;
color:#ddd;
}
@keyframes run-letters{
0%{
transform: translateX(100%);
}
100%{
transform: translateX(-100%);
}
}
@media only screen and (max-width: 630px){
.parent{
width: 100%; /* Set the container's width to 100% of its parent in mobile */
}
}
.credit a{
text-decoration: none;
color: #121212;
font-weight: 800;
}
.credit{
color: #121212;
text-align: center;
margin-top: 10px;
font-family: Verdana,Geneva,Tahoma,sans-serif;
}
.credit span{
color:tomato;
font-size:20px;
}
Thank you for reading our blog. If you face any problem in Creating a running text using HTML and CSS., then contact us or comment to us. We’ll try to provide a solution to your problem as soon as possible.
Explore
Press The Key ' p ' and say ' read article ' our voice assistant read our article.
In Our older post it doesnot work we working on that.
In Our older post it doesnot work we working on that.
Where is the sidebar...that was black?
ردحذفإرسال تعليق
Thank you
Learning robo team