navasena/wp-content/plugins/thinkai-plugin/assets/js/banner.js

92 lines
1.9 KiB
JavaScript
Raw Normal View History

2024-07-31 13:12:38 +07:00
(function($) {
"use strict";
var banner_script_js = function($scope, $) {
// Curved Circle
if ($('.curved-circle').length) {
$('.curved-circle').circleType({
position: 'absolute',
dir: 1,
radius: 85,
forceHeight: true,
forceWidth: true
});
}
// Curved Circle 2
if ($('.curved-circle-2').length) {
$('.curved-circle-2').circleType({
position: 'absolute',
dir: 1,
radius: 80,
forceHeight: true,
forceWidth: true
});
}
//Jquery Curved 3
if ($('.curved-circle-3').length) {
$('.curved-circle-3').circleType({
position: 'absolute',
dir: 1,
radius: -57,
forceHeight: true,
forceWidth: true
});
}
// Vegas Slider
if ($(".slider-bg-slide").length) {
$(".slider-bg-slide").each(function () {
var Self = $(this);
var bgSlidesOptions = Self.data("options");
var bannersTwoSlides = Self.vegas(bgSlidesOptions);
});
}
//Banner Carousel
if ($(".thm-owl__carousel").length) {
$(".thm-owl__carousel").each(function () {
let elm = $(this);
let options = elm.data('owl-options');
let thmOwlCarousel = elm.owlCarousel(options);
});
}
// particular Animation
if ($(".particular").length) {
$(".particular").jParticle({
background: "rgba(0,0,0, 0.0)",
color: "#e7e3ed",
particlesNumber: 150,
particle: {
speed: 20
}
});
}
// particular Animation
if ($(".particular-top").length) {
$(".particular-top").jParticle({
background: "rgba(0,0,0, 0.0)",
color: "#e7e3ed",
particlesNumber: 150,
particle: {
speed: 20,
width: 1
},
});
}
};
$(window).on('elementor/frontend/init', function () {
elementorFrontend.hooks.addAction('frontend/element_ready/thinkai_banner.default', banner_script_js);
elementorFrontend.hooks.addAction('frontend/element_ready/thinkai_about_us.default', banner_script_js);
});
})(window.jQuery);