Loading images on scroll

Better api
This commit is contained in:
Michał Gdula 2022-12-14 19:55:40 +00:00
parent 4279ebed00
commit 3f64c56ec8
9 changed files with 169 additions and 87 deletions

View file

@ -1,12 +1,9 @@
{% extends 'layout.html' %}
{% block content %}
<header>
<img src="/file/{{ fileName }}" alt="leaves"/>
<span></span>
</header>
<div class="app">
<div class="image__container">
<img class="image__item" src="/file/{{ fileName }}" onload="imgFade(this)" style="display:none;"/>
<img class="image__item" src="/uploads/original/{{ fileName }}" onload="imgFade(this)" style="display:none;"/>
</div>
<div class="image__info">
<h2>{{ fileName }}</h2>