or post a link to the live project...that is a mess up there...
Side note to @ChrisCoyier: I can't remember where the Git is for this redesign to make it an issue, but the code functionality has really busted my balls since the last (perfect) version....something is quite amiss...see this OP for reference.
I can't read your code or spend my time doing that, but I can tell you that CSS3 alone is not going to get the desired effect. Even if you manage to use animations and all, this slideshow will not be supported in most browsers. It will be quite unstable, etc.
Hi, I am looking for a way to start the slide show (transition) automatically when the page is loaded.
You can see the slide show here: http://acecars24.com/normal
[U][I][B]HTML Code:[/B][/I][/U] [CODE] <!DOCTYPE html>
[/CODE]
[B][I][U]CSS Code (slideshow.css): [/U][/I][/B] [CODE] body { font: 14px/22px Arial, Helvetica, sans-serif; color: #333; background: url(../images/background.png); margin: 10px auto; overflow-x: hidden; width: 960px; }
label, a { color: teal; cursor: pointer; text-decoration: none; } label:hover, a:hover { color: #000 !important; }
/* Slider Setup */
input { display: none; }
slide1:checked ~ #slides .inner {
}
slide2:checked ~ #slides .inner {
}
slide3:checked ~ #slides .inner {
}
slide4:checked ~ #slides .inner {
}
slide5:checked ~ #slides .inner {
}
overflow {
}
/* Info Box */
.info { line-height: 20px; margin: 0 -10% 0 680px; position: absolute; !important; padding: 30px 0px; opacity: 0; color: #fff; text-align: left; width: 220px; } .info h3 { color: #fff; margin: 15px 0 15px; font-weight: normal; font-size: 22px; font-style: normal; }
.readmore { padding: 20px 0px; }
slides .inner {
}
slides article {
}
/* Slider Styling */
/* Control Setup */
controls {
}
controls label {
}
active {
}
active label {
}
active label:hover {
}
controls label:hover {
}
slide1:checked ~ #active label:nth-child(1), #slide2:checked ~ #active label:nth-child(2), #slide3:checked ~ #active label:nth-child(3), #slide4:checked ~ #active label:nth-child(4), #slide5:checked ~ #active label:nth-child(5) {
}
/* Next Button */
slide1:checked ~ #controls label:nth-child(2), #slide2:checked ~ #controls label:nth-child(3), #slide3:checked ~ #controls label:nth-child(4), #slide4:checked ~ #controls label:nth-child(5), #slide5:checked ~ #controls label:nth-child(1) {
}
/* Previous Button */
slide1:checked ~ #controls label:nth-child(5), #slide2:checked ~ #controls label:nth-child(1), #slide3:checked ~ #controls label:nth-child(2), #slide4:checked ~ #controls label:nth-child(3), #slide5:checked ~ #controls label:nth-child(4) {
}
/* Image Background */
slides {
}
/* Animation */
/* Moving from right to left */
slides .inner {
}
/* Text Transition */
slide1:checked ~ #slides article:nth-child(1) .info, #slide2:checked ~ #slides article:nth-child(2) .info, #slide3:checked ~ #slides article:nth-child(3) .info, #slide4:checked ~ #slides article:nth-child(4) .info, #slide5:checked ~ #slides article:nth-child(5) .info {
}
[/CODE]
Thanks
Put that into a jsfiddle
or post a link to the live project...that is a mess up there...
Side note to @ChrisCoyier: I can't remember where the Git is for this redesign to make it an issue, but the code functionality has really busted my balls since the last (perfect) version....something is quite amiss...see this OP for reference.
Paste the code in, select it, press the code button.
I can't read your code or spend my time doing that, but I can tell you that CSS3 alone is not going to get the desired effect. Even if you manage to use animations and all, this slideshow will not be supported in most browsers. It will be quite unstable, etc.
Your best bet is to try learning jQuery.