I'm working on improvements for my Easing Slider WordPress plugin and one of the common requests I get is to add support for background sliders, etc.
I'm looking into using background images as I find myself using background-size: cover
a lot to have responsive hero images, etc.
I intend to keep the markup as is, including the HTML img
with title and alt tag, only it'll remain hidden using display: none
. I'll then have the JS add it as a background image for that slide. This allows me to keep the preloading intact too.
What are the SEO implications of this? Is this a bad approach? I don't see another way of reliably achieving the behaviour of background-size: cover
.