diff options
author | Bradley Taunt <brad@bt.ht> | 2023-11-27 12:25:51 -0500 |
---|---|---|
committer | Bradley Taunt <brad@bt.ht> | 2023-11-27 12:25:51 -0500 |
commit | 14d227d46a2177a8928333894252d6299f531097 (patch) | |
tree | d41d48383d012f53823c9816a820e4e88c572c41 /posts/css-video-backgrounds.md | |
parent | f6eed1a8c2f4fbf91fac9edd11e50f5c0ec939a2 (diff) |
Trying to render posts all at once
Diffstat (limited to 'posts/css-video-backgrounds.md')
-rw-r--r-- | posts/css-video-backgrounds.md | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/posts/css-video-backgrounds.md b/posts/css-video-backgrounds.md new file mode 100644 index 0000000..d4a3123 --- /dev/null +++ b/posts/css-video-backgrounds.md @@ -0,0 +1,30 @@ +# CSS Video Backgrounds + +2018-04-16 + +With the release of Safari 11.1 on macOS and Safari on iOS 11.3, developers now have the ability to support background videos (mp4 support only - at the time of this article) with pure CSS. + +Example: + + + .video-background { + background-image: url('path-to-video.mp4); + } + + +## See it in action + +Check out the very basic CodePen I created below to see it live (make sure you view it in latest Safari or else you won't see anything :P) + +<a href="https://codepen.io/bradleytaunt/pen/JLgrag/">CSS Video Background (Safari Only)</a> + +You can read up on all the new features implemented in 11.1 Safari here: + +[New WebKit Features in Safari 11.1](https://webkit.org/blog/8216/new-webkit-features-in-safari-11-1/) + + + + + + + |