Is there a better way to create my slider using HTML5 and CSS3 exclusively?
Hi,
I have been continuing my quest to hand code my own website by adding an HTML/CSS slider to the homepage. I have getting the slider to work and have added some placeholder images from Google but I am really not happy with it.
- Sometimes the animation is jerky
- I dont like how abrupt the animation is
- The last slide doesn't display for the correct length of time
I am convinced that there is a better way to create the slider. The information on W3Schools about sliders all relates to using javascript, which I really don't want to do. I want to stay away from javascript as much as possible and code only in HTML5 and CSS3. The reason for this, is that I want to eventually move onto coding a mobile first site according to the principles of progressive enhancement and so I would much rather learn to code active, responsive sites without relying on any 3rd party libraries.
Anyway; as I said, I am sure there is a better way for me to create the slider. Could someone please take a look at my code and tell me how I can improve it.
A live page can be found at: ARCNET
My code is hosted in a public repo on Github.
index.html source code: arcnet.io/index.html at master · jaygtel/arcnet.io · GitHub
global.css: arcnet.io/global.css at master · jaygtel/arcnet.io · GitHub
custom.css: arcnet.io/custom.css at master · jaygtel/arcnet.io · GitHub this is where I have coded the keyframes and set the style rules for the slider
Thanks so much to everyone who takes the time to help me out
Jay
