Jul 26, 2017 · 1 min read
Cool, but what about instead having the same image as both a background image as well as an img, and hiding/showing them respectively with CSS? A couple of lines extra of CSS, but no JS whatsoever being needed.
Cool, but what about instead having the same image as both a background image as well as an img, and hiding/showing them respectively with CSS? A couple of lines extra of CSS, but no JS whatsoever being needed.