There is a background color when the airbnb film does not appear, wait until the film has been picked up, and then display it.

https://www.airbnb.com.tw/s/r.

how is this effect realized?
is that there is a background color (gray) when the film does not appear, and then show the film when the film is finished. The gray background disappears and there is no sense of harmony at all. How do you do this?!


the black background is a mask, the picture is loaded, and the transparency of the mask becomes zero, that's all.
demo


I looked at it, and it felt like a lazy loading way ~

if so, try using lazyload.js ~

Menu