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

26 lines
468 B
JavaScript
Raw Normal View History

2017-10-07 14:25:54 +00:00
$(document).ready(function(){
$('.parallax').parallax();
2017-10-07 17:55:52 +00:00
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);
2017-10-07 14:25:54 +00:00
});