Yeet JQuery in favor of vanilla JS

This commit is contained in:
Michał Gdula 2023-04-02 22:07:14 +00:00
parent c7e38dfcfb
commit 6f759bb678
7 changed files with 106 additions and 94 deletions

View file

@ -1,6 +1,7 @@
// fade in images
function imgFade(obj, time = 250) {
$(obj).animate({ opacity: 1 }, time);
obj.style.transition = `opacity ${time}ms`;
obj.style.opacity = 1;
}
// Lazy load images when they are in view
function loadOnView() {