I would use <figure></figure> not section, but it really doesnāt matter, except maybe for purists. Without some sort of engine running in the background, the best you can hope for is what user interaction with the pointer device or keyboard is available. On that note the option is to have a row or column of thumbnails and relate them to the larger image which can be exposed in the figure viewport. This is not a slideshow, if the definition of one means it runs on its own steam. CSS is not dynamic like that and cannot just be turned on and off, or given to run a continuous loop. Just so weāre clear on that.
Add radio buttons inside the main element ā one for each slide and one for continuing the autoplay.
If a radio button for a certain slide is checked, set the animation to animation-play-state: paused; and the animation-delay to the time where your image that should be linked to that radio button would be visible (for this example animation-delay: 1s for the second slide with the animation-duration is set to 10s). You can associate the radio buttons with the general sibling selector: input[value="slide-2"]:checked ~ div. (For this it is important that the input fields are inside the main element and not wrapped in another element).
When the user clicks on the radio button for continuing the autoplay, set the animation-play-state to running.
Have you tried the instructions I posted? This is how you can create a single slideshow as in your first link. Just with bullets rather than āpreviousā and āforwardā controls. And with the additional option to have autoplay. If you do not need autoplay, it is much simpler: You donāt need a css animation, just a left and a transition property. And it is a little more reliable as the animation-delay does not always jump to the right frame across all browsers.
I will look through your suggestions. Iām new to CSS and HTML so it will take me a little bit to understand the suggestions youāve made. But I really appreciate your advise!!
I just added some more details, an illustration, and some website links that help explain what Iām looking for. Not sure if that changes your suggestions, but if you donāt mind reviewing the newly added details, Iād really appreciate it.
Regarding the continuous loop - Iām not trying to create a continuous loop. Iāve added some additional details to help explain what iām trying to do.
If you donāt mind checking them out, Iād be happy to hear what you think.
There is an illustration, some website links showing the kind of slideshow iām hoping to create, and the horizontally scrolled stacking effect i want to use.
Having had another look at the link you posted, I saw that the slider you posted in your first link ā what you want to achieve with css only ā is built already with css only.
So, is zero-44 your account? And did you copy paste that code from another repo? Then you should at least add a link to the origin in the README and mention the source in a comment in the source code, I think.
Why do you want to restructure it? Is there anything you want to ad that cannot be added the way the code is structured?
Sorry for the delayed response. Iāve been working overtime to get a couple days off after new year.
Even though I created an account on Github a few years ago, Iām new to using it. Thanks for letting me know to provide links and references to the code Iāve been using.
Unfortunately, I didnāt keep the links to the code used above. When I began working on creating my own website, I hadnāt been planning to share it in this kind of public way. Now that I know I will be doing that, I will begin to keep track of the Code Iām using and provide links to the sources on my GitHub pages.
Thank you for making me aware of this!!! Itās kinda obvious, and I should have known better.
Iāve just created a new webpage with updated code.
Iām a little lost right now: The slider you originally posted is already doing what you wanted, right? So what do you want to do now and what is the matter with the code you posted now?
I like the code Iām using in the updated site @ projekt_three.
If you scroll down to āCard 5ā, there is a slideshow. Currently, that slideshow sits in the middle of the page. I will be increasing the size of this slideshow container to be nearly the same size as the ācardā that it sits on. What Iām struggling with now is figuring out how to make this slideshow responsive so that it shrinks and expands depending on the size of the browser. The Stacking Cards shrink and expand, but the slideshow doesnāt.
yes, that is what Iām trying to achieve. Actually, I did something similar to this where the links to the images are in the CSS rather than the HTML - I can post this as well.
Iām going to spend some time looking through the link you just posted and trying to understand how I could integrate this option into my site. Iāll post my updates later. Hopefully tomorrow.
Thanks again for all your suggestions and input!!!
The only real benefit to having the IMG element in the HTML is that it has a better chance of being indexed by the search engines. If you goal is to not have them indexed, then leave them as background images in the CSS.