Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
<style>
.marquee h2 {
margin: 0 auto;
white-space: nowrap;
overflow: hidden;
position: absolute;
top: 0;
}
.marquee h2 span {
display: inline-block;
padding-left: 100%;
animation: marquee 30s linear infinite;
}
.marquee2 h2 span {
animation-delay: 15s;
}
@keyframes marquee {
0% {
transform: translate(0, 0);
}
100% {
transform: translate(-100%, 0);
}
}
</style>
<div class="marquee">
<h2><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. </span></h2>
</div>
<div class="marquee marquee2">
<h2><span>Lorem ipsum dolor sit amet, consectetur adipiscing elit. </span></h2>
</div>
Thursday, March 2, 2023
Continuous infinite text loop with CSS
Subscribe to:
Post Comments (Atom)
For Professional website contact WEB CODE ADDICT
View this post on Instagram A post shared by WebCodeAddict (@webcodeaddicted)
-
Web Design ,Logo Design, graphic design, website design: Web Design : encompasses many different skills and disciplines in the production a...
-
The Wedding is Responsive HTML theme for wedding planner websites. which helps you to build your own site. Wedding Planner theme has ...
-
<!doctype HTML> <html> <head> <meta content="text/html; charset=UTF-8" /> <title>Web Code Addict Ac...
Very useful post. keep it up👍👍👍
ReplyDeleteThank you 😊 keep supporting
ReplyDelete