1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
| <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.container {
background: linear-gradient(90deg, rgba(11, 11, 11, 0.9850140739889706) 0%, rgb(127, 127, 127) 40%, rgb(201, 201, 201) 70%, rgba(255, 255, 255, 1) 100%);
width: 100%;
height: 80px;
margin: 0 auto;
overflow: hidden;
position: relative;
font-size: 4em;
border: 1px solid red;
}
.marqueeA {
margin: 0 auto;
white-space: nowrap;
overflow: hidden;
position: absolute;
}
.marqueeA span {
display: inline-block;
padding-left: 50%;
animation: marquee-text 15s linear infinite;
}
@keyframes marquee-text {
0% {
transform: translate(0, 0);
color: rgb(0, 0, 0);
}
40% {
color: rgb(160, 160, 160);
}
70% {
color: rgb(214, 211, 211);
}
100% {
transform: translate(-100%, 0);
color: rgb(242, 242, 242);
}
}
</style>
</head>
<body>
<div class="container">
<p class="marqueeA">
<span> La nature est tout ce quon voit, tout ce quon veut, tout ce quon aime. Tout ce quon sait,
tout ce
quon croit, tout ce que lon sent en soi-même...</span>
</p>
</div>
</body>
</html> |
Partager