-
Notifications
You must be signed in to change notification settings - Fork 51
/
scripts.js
51 lines (44 loc) · 1.41 KB
/
scripts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// all ------------------
function initParadoxWay() {
"use strict";
if ($(".testimonials-carousel").length > 0) {
var j2 = new Swiper(".testimonials-carousel .swiper-container", {
preloadImages: false,
slidesPerView: 1,
spaceBetween: 20,
loop: true,
grabCursor: true,
mousewheel: false,
centeredSlides: true,
pagination: {
el: '.tc-pagination',
clickable: true,
dynamicBullets: true,
},
navigation: {
nextEl: '.listing-carousel-button-next',
prevEl: '.listing-carousel-button-prev',
},
breakpoints: {
1024: {
slidesPerView: 3,
},
}
});
}
// bubbles -----------------
setInterval(function () {
var size = randomValue(sArray);
$('.bubbles').append('<div class="individual-bubble" style="left: ' + randomValue(bArray) + 'px; width: ' + size + 'px; height:' + size + 'px;"></div>');
$('.individual-bubble').animate({
'bottom': '100%',
'opacity': '-=0.7'
}, 4000, function () {
$(this).remove()
});
}, 350);
}
// Init All ------------------
$(document).ready(function () {
initParadoxWay();
});