diff --git a/gallery/templates/gallery/partials/parallax.html b/gallery/templates/gallery/partials/parallax.html index 5634298..99b7196 100644 --- a/gallery/templates/gallery/partials/parallax.html +++ b/gallery/templates/gallery/partials/parallax.html @@ -1,26 +1,31 @@ {% load top_tags %} {% load static %} -
+
diff --git a/static/css/muistox.css b/static/css/muistox.css index 634fc49..ca17eea 100644 --- a/static/css/muistox.css +++ b/static/css/muistox.css @@ -37,4 +37,14 @@ body { opacity: 1; transform: scale(1); } +} + +.lazyfade { + opacity: 0; + transition: opacity 1s ease; +} + +.lazyfade[loading="eager"], +.lazyfade[loading="lazy"]:not([src=""]) { + opacity: 1; } \ No newline at end of file