Files
laravel-vuexy-website-layou…/resources/public/js/views/view.home.js
2025-09-09 17:57:38 -06:00

46 lines
842 B
JavaScript

/*
Name: View - Home
Written by: Okler Themes - (http://www.okler.net)
Theme Version: 12.1.0
*/
(($ => {
/*
Circle Slider
*/
if ($.isFunction($.fn.flipshow)) {
const circleContainer = $('.fc-slideshow');
$.each( circleContainer, function() {
const $container = $(this);
$container.flipshow();
setTimeout(function circleFlip() {
$container.data().flipshow._navigate($container.find('div.fc-right span:first'), 'right');
setTimeout(circleFlip, 3000);
}, 3000);
});
}
/*
Move Cloud
*/
if ($('.cloud').get(0)) {
const moveCloud = () => {
$('.cloud').animate({
'top': '+=20px'
}, 3000, 'linear', () => {
$('.cloud').animate({
'top': '-=20px'
}, 3000, 'linear', () => {
moveCloud();
});
});
};
moveCloud();
}
})).apply(this, [jQuery]);