- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello, I recently started doing HTML and I tried making a slideshow withint a text. After like 5 seconds the picture overlaps the text and ruins it here is a gif. https://gyazo.com/920c1d2e2cd5c26eb703f0a97caa96fb and here is my code https://gyazo.com/e4d57596363d3d62b7016c4226f5eb48
Please create a simple demo in CodePen so that we can see a real/working example of the behaviour/problem.
<title>School</title>
body{
margin: 0;
padding: 0;
background: #2d3436;
}
h1{
font-size: 200px;
text-transform: uppercase;
font-weight: 900;
letter-spacing: 20px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
margin: 0px;
background: url(images/Trevianum1.jpg) 50% 50%;
-webkit-text-fill-color:transparent;
-webkit-background-clip:text;
animation: slide 30s infinite;
}
@keyframes slide{
25%{
background: url(images/Trevianum1.jpg);
}
50%{
background: url(images/Trevianum2.jpg);
}
75%{
background: url(images/Trevianum3.jpg);
}
100%{
background: url(images/Trevianum4.jpg);
}
}
like this?
No, we would need a live/working demo in https://codepen.io