Skip to content

Commit 8b89333

Browse files
author
Mizanur Rahaman
committed
Merge branch 'dashboard' of https://github.com/Wealcoder/animation-addons-for-elementor into dashboard
2 parents 1d88fd6 + e1945cb commit 8b89333

File tree

16 files changed

+81
-972
lines changed

16 files changed

+81
-972
lines changed

animation-addons-for-elementor.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
/**
3-
* Plugin Name: Animation Addons for Elementor
3+
* Plugin Name: Animation Addons for Elementor - GSAP Powered Elementor Addons & Website Templates
44
* Description: Animation Addons for Elementor comes with GSAP Animation Builder, Customizable Widgets, Header Footer, Single Post, Archive Page Builder, and more.
55
* Plugin URI: https://animation-addons.com/
6-
* Version: 2.1.8
6+
* Version: 2.1.9
77
* Author: Wealcoder
88
* Author URI: https://animation-addons.com/
99
* License: GPL v2 or later
@@ -27,7 +27,7 @@
2727
/**
2828
* Plugin Version.
2929
*/
30-
define( 'WCF_ADDONS_VERSION', '2.1.8' );
30+
define( 'WCF_ADDONS_VERSION', '2.1.9' );
3131
}
3232
if ( ! defined( 'WCF_ADDONS_FILE' ) ) {
3333
/**
@@ -91,7 +91,7 @@ final class WCF_ADDONS_Plugin {
9191
* @since 1.0.0
9292
* @var string The plugin version.
9393
*/
94-
const VERSION = '2.1.5';
94+
const VERSION = '2.1.9';
9595

9696
/**
9797
* Minimum Elementor Version
@@ -243,7 +243,7 @@ function enqueue_elementor_install_script() {
243243
'wcf-install-elementor-script',
244244
plugin_dir_url(__FILE__) . 'assets/js/install-elementor.js', // Replace with your JS file path
245245
['jquery'], // Dependencies
246-
'2.0', // Version
246+
'2.1', // Version
247247
true // Load in footer
248248
);
249249

assets/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1669,7 +1669,7 @@
16691669
'is_pro' => true,
16701670
'is_active' => false,
16711671
'elements' => [
1672-
'draggable' => [
1672+
'Draggable' => [
16731673
'label' => 'Draggable',
16741674
'is_pro' => true,
16751675
'is_active' => false,

assets/js/widgets/image-compare.js

Lines changed: 44 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
(function ($) {
23
/**
34
* @param $scope The Widget wrapper element as a jQuery element
@@ -18,49 +19,51 @@
1819
var $btnExpandRight = $('.btn-expand-right', $scope);
1920

2021
// GSAP Timeline
21-
var tl = gsap.timeline({
22-
delay: 1
23-
});
22+
if ((typeof gsap === "undefined" ? "undefined" : _typeof(gsap)) === "object") {
23+
var tl = gsap.timeline({
24+
delay: 1
25+
});
2426

25-
// Set initial positioning and animations
26-
tl.set($caption, {
27-
autoAlpha: 0,
28-
yPercent: -100
29-
});
30-
tl.to($sliderLeft, {
31-
duration: 0.7,
32-
width: $startPosition,
33-
ease: "back.out(1.7)"
34-
});
35-
tl.to($handle, {
36-
duration: 0.7,
37-
x: $startPosition,
38-
ease: "back.out(1.7)"
39-
});
40-
tl.to($caption, {
41-
duration: 0.7,
42-
autoAlpha: 1,
43-
yPercent: 0,
44-
ease: "back.inOut(3)",
45-
stagger: -0.3
46-
});
27+
// Set initial positioning and animations
28+
tl.set($caption, {
29+
autoAlpha: 0,
30+
yPercent: -100
31+
});
32+
tl.to($sliderLeft, {
33+
duration: 0.7,
34+
width: $startPosition,
35+
ease: "back.out(1.7)"
36+
});
37+
tl.to($handle, {
38+
duration: 0.7,
39+
x: $startPosition,
40+
ease: "back.out(1.7)"
41+
});
42+
tl.to($caption, {
43+
duration: 0.7,
44+
autoAlpha: 1,
45+
yPercent: 0,
46+
ease: "back.inOut(3)",
47+
stagger: -0.3
48+
});
4749

48-
// Draggable
49-
Draggable.create($handle, {
50-
type: "x",
51-
bounds: {
52-
minX: 0,
53-
minY: 0,
54-
maxX: $comparisonSliderWidth,
55-
maxY: $comparisonSliderHeight
56-
},
57-
edgeResistance: 1,
58-
throwProps: true,
59-
onDrag: onHandleDrag,
60-
onLockAxis: function onLockAxis() {
61-
console.log("onLockAxis");
62-
}
63-
});
50+
// Draggable
51+
Draggable.create($handle, {
52+
type: "x",
53+
bounds: {
54+
minX: 0,
55+
minY: 0,
56+
maxX: $comparisonSliderWidth,
57+
maxY: $comparisonSliderHeight
58+
},
59+
edgeResistance: 1,
60+
throwProps: true,
61+
onDrag: onHandleDrag,
62+
onLockAxis: function onLockAxis() {
63+
console.log("onLockAxis");
64+
}
65+
});
66+
}
6467

6568
// Drag Function
6669
function onHandleDrag() {

assets/js/widgets/image-compare.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/src/js/widgets/image-compare.js

Lines changed: 0 additions & 106 deletions
This file was deleted.

assets/src/scss/widgets/image-compare.scss

Lines changed: 0 additions & 99 deletions
This file was deleted.

0 commit comments

Comments
 (0)