3 ms·
I'm STILL learning HTML and CSS after 20 years. Constantly surprised by new uses or semantics, or rediscovering a little known attribute or selector. One that
by icameron 8y ago
I'm STILL learning HTML and CSS after 20 years. Constantly surprised by new uses or semantics, or rediscovering a little known attribute or selector. One that comes to mind is background-image is an animated GIF with background-size: cover making it look like the page text is on the inside of a car window as its driving around.
It took a while for everything to 'click' and understand how DOM/JavaScript/CSS can really jive together. Using a framework is easier than understanding how something like Bootstrap works by examining the elements, CSS and scripts that all work together. I know there's always going to be more to learn, like any art form.
- nicoburns 8y agoIt's worth considering using an mp4 (with video tag) for this use case. You get the same effect, but it's much more battery efficient.
- CM30 8y agoNot sure if I'm a bit behind the times with this one, but I remember that iOS Safari had issues playing inline videos and you'd need to use JavaScript + Canvas to get it working well there (compared to desktop browsers where a simple video tag doesn't go full screen). So depending on your intended browser support, a GIF may sometimes work better.