Better GIF loading

This commit is contained in:
Pablo Ferreiro 2022-01-06 00:55:24 +01:00
parent 321067c37c
commit ca926c4dfb
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
3 changed files with 32 additions and 29 deletions

View file

@ -1,14 +1,26 @@
#video {
height: 100%;
overflow: hidden;
height: 100%;
overflow: hidden;
}
.hidden {
display: none;
figure {
position: relative;
display: inline-block;
}
/* Make gifs take all available space */
.clickable-img img {
.img-background {
width: 100%;
height: 100%;
}
figure .img-background {
display: none;
position: absolute;
top: 0;
left: 0;
z-index: 99;
}
figure:hover .img-background {
display: inline;
}