This repository has been archived on 2024-07-30. You can view files and clone it, but cannot push or open issues or pull requests.
homepage-2017/staticfiles/js/app.js
2017-10-08 11:47:57 +03:00

26 lines
468 B
JavaScript

$(document).ready(function(){
$('.parallax').parallax();
const TIMEOUT = 4000;
const LENGTH = 3;
let n = 2;
let loopInterval = setInterval(()=> {
let images = $('.fadeimage');
let image = $('.fadeimage:nth-child(' + (n) + ')');
let next = n < LENGTH ? n++ : n=1;
// images.css('opacity', 0)
// image.css('opacity', 1)
// console.log()
// console.log(image);
// console.log(image.css('opacity', 1))
}, TIMEOUT);
});