Hallo,
Ich finde einfahc nicht heraus wie man die folgene CSS Bildergalerie um zwei weitere Bilder erweitern kann:
CSS
main {
background: transparent;
border-color: transparent;
}
#gallery {
position: relative;
background: none;
border: none;
}
#gallery figure {
position: absolute;
top: 0;
left: 0;
}
#gallery figcaption {
position: absolute;
left: 1em;
font-size: 2em;
font-weight: bold;
bottom: 0.5em;
color: white;
}
@-webkit-keyframes bilder {
0% {
opacity: 1;
}
34% {
opacity: 1;
}
35% {
opacity: 0;
}
100% {
opacity: 0;
}
}
@keyframes bilder {
0% {
opacity: 1;
}
34% {
opacity: 1;
}
35% {
opacity: 0;
}
100% {
opacity: 0;
}
}
#gallery figure:nth-of-type(1) {
-webkit-animation: bilder 15s 7s infinite;
animation: bilder 15s 7s infinite;
}
#gallery figure:nth-of-type(2) {
-webkit-animation: bilder 15s 2s infinite;
animation: bilder 15s 2s infinite;
}
#gallery figure:nth-of-type(3) {
-webkit-animation: bilder 15s 12s infinite;
animation: bilder 15s 12s infinite;
}
@-webkit-keyframes wechseln {
0% {
opacity: 1;
transform: scale(1, 1);
z-index: 20;
}
20% {
opacity: 1;
transform: scale(1, 1);
}
34% {
opacity: 0;
transform: scale(0, 0);
}
100% {
opacity: 1;
transform: scale(0, 0);
}
}
@keyframes wechseln {
0% {
opacity: 1;
transform: scale(1, 1);
z-index: 20;
}
20% {
opacity: 1;
transform: scale(1, 1);
}
34% {
opacity: 0;
transform: scale(0, 0);
}
100% {
opacity: 1;
transform: scale(0, 0);
}
}
#gallery figure:nth-of-type(4) {
-webkit-animation: wechseln 15s 10s infinite;
animation: wechseln 15s 10s infinite;
}
#gallery figure:nth-of-type(5) {
-webkit-animation: wechseln 15s 5s infinite;
animation: wechseln 15s 5s infinite;
}
#gallery figure:nth-of-type(6) {
-webkit-animation: wechseln 15s infinite;
animation: wechseln 15s infinite;
}
HTML
___________
<!DOCTYPE html>
<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>form1test</title>
<link rel="stylesheet" type="text/css" href="css/form1.css">
</head>
<body
style="background-color: rgb(165,68,154);"
<main>
<h2>xxxxxx</h2>
<div id="gallery">
<figure> <img src="images/dan03.jpg" alt="33333">
<figcaption>333</figcaption>
</figure>
<figure> <img src="images/dan02.jpg" alt="22222">
<figcaption>222
</figcaption>
</figure>
<figure> <img src=""images/dan01.jpg" alt="1111">
<figcaption>
</figcaption>
</figure>
<figure> <img src="images/dan03.jpg" alt="33333">
<figcaption>333
</figcaption>
</figure>
<figure> <img src="images/dan02.jpg" alt="22222">
<figcaption>222
</figcaption>
</figure>
<figure> <img src="images/dan01.jpg" alt="1111">
<figcaption>111
</figcaption>
</figure>
</div>
</main>
</body>
</html>
---------------------------------
Kann mir bitte jemand sagen, wie ich diese Bildergalerie um weitere Bilder erweitern kann?
Danke
brainstuff