plugin updates

This commit is contained in:
Tony Volpe
2024-02-21 16:19:46 +00:00
parent c72f206574
commit 21d4c85c00
1214 changed files with 102269 additions and 179257 deletions

View File

@@ -705,15 +705,13 @@
} else {
var prop = slider.prop;
slider.container.each(function() {
var container = this;
var keyframes = {};
keyframes[prop] = [
window.getComputedStyle(container)[prop],
slider.args[prop]
];
var currentStyle = {};
currentStyle[prop] = container.style[prop];
container.animate(keyframes, { duration: slider.vars.animationSpeed, easing: easing }).onfinish = function() {
container.animate([currentStyle, slider.args], { duration: slider.vars.animationSpeed, easing: easing }).onfinish = function() {
container.style[prop] = slider.args[prop];
slider.wrapup(dimension);
};
@@ -1134,7 +1132,8 @@
$slides = $this.find(selector);
if ( ( $slides.length === 1 && options.allowOneSlide === false ) || $slides.length === 0 ) {
$slides.fadeIn(400);
var fadeIn = [{ opacity: 0 }, { opacity: 1 }];
if ($slides.length) { $slides[0].animate(fadeIn, 400); }
if (options.start) { options.start($this); }
} else if ($this.data('flexslider') === undefined) {
new $.flexslider(this, options);