Update Vegas

This commit is contained in:
2024-12-10 11:05:29 +01:00
parent 3d22f9c5d8
commit 2ee149f14b
18 changed files with 40 additions and 127 deletions
-11
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

View File

Before

Width:  |  Height:  |  Size: 98 B

After

Width:  |  Height:  |  Size: 98 B

View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

View File

Before

Width:  |  Height:  |  Size: 102 B

After

Width:  |  Height:  |  Size: 102 B

View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

View File

Before

Width:  |  Height:  |  Size: 104 B

After

Width:  |  Height:  |  Size: 104 B

View File

Before

Width:  |  Height:  |  Size: 106 B

After

Width:  |  Height:  |  Size: 106 B

View File

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 118 B

-90
View File
@@ -325,19 +325,9 @@ body.vegas-container > .vegas-slide {
/* kenburns animation */
/*******************************************/
.vegas-animation-kenburns {
-webkit-animation: kenburns ease-out;
animation: kenburns ease-out;
}
@-webkit-keyframes kenburns {
0% {
transform: scale(1.5);
}
100% {
transform: scale(1);
}
}
@keyframes kenburns {
0% {
transform: scale(1.5);
@@ -351,19 +341,9 @@ body.vegas-container > .vegas-slide {
/* kenburnsDownLeft animation */
/*******************************************/
.vegas-animation-kenburnsDownLeft {
-webkit-animation: kenburnsDownLeft ease-out;
animation: kenburnsDownLeft ease-out;
}
@-webkit-keyframes kenburnsDownLeft {
0% {
transform: scale(1.5) translate(10%, -10%);
}
100% {
transform: scale(1) translate(0, 0);
}
}
@keyframes kenburnsDownLeft {
0% {
transform: scale(1.5) translate(10%, -10%);
@@ -377,19 +357,9 @@ body.vegas-container > .vegas-slide {
/* kenburnsDownRight animation */
/*******************************************/
.vegas-animation-kenburnsDownRight {
-webkit-animation: kenburnsDownRight ease-out;
animation: kenburnsDownRight ease-out;
}
@-webkit-keyframes kenburnsDownRight {
0% {
transform: scale(1.5) translate(-10%, -10%);
}
100% {
transform: scale(1) translate(0, 0);
}
}
@keyframes kenburnsDownRight {
0% {
transform: scale(1.5) translate(-10%, -10%);
@@ -403,19 +373,9 @@ body.vegas-container > .vegas-slide {
/* kenburnsDown animation */
/*******************************************/
.vegas-animation-kenburnsDown {
-webkit-animation: kenburnsDown ease-out;
animation: kenburnsDown ease-out;
}
@-webkit-keyframes kenburnsDown {
0% {
transform: scale(1.5) translate(0, -10%);
}
100% {
transform: scale(1) translate(0, 0);
}
}
@keyframes kenburnsDown {
0% {
transform: scale(1.5) translate(0, -10%);
@@ -429,19 +389,9 @@ body.vegas-container > .vegas-slide {
/* kenburnsLeft animation */
/*******************************************/
.vegas-animation-kenburnsLeft {
-webkit-animation: kenburnsLeft ease-out;
animation: kenburnsLeft ease-out;
}
@-webkit-keyframes kenburnsLeft {
0% {
transform: scale(1.5) translate(10%, 0);
}
100% {
transform: scale(1) translate(0, 0);
}
}
@keyframes kenburnsLeft {
0% {
transform: scale(1.5) translate(10%, 0);
@@ -455,19 +405,9 @@ body.vegas-container > .vegas-slide {
/* kenburnsRight animation */
/*******************************************/
.vegas-animation-kenburnsRight {
-webkit-animation: kenburnsRight ease-out;
animation: kenburnsRight ease-out;
}
@-webkit-keyframes kenburnsRight {
0% {
transform: scale(1.5) translate(-10%, 0);
}
100% {
transform: scale(1) translate(0, 0);
}
}
@keyframes kenburnsRight {
0% {
transform: scale(1.5) translate(-10%, 0);
@@ -481,19 +421,9 @@ body.vegas-container > .vegas-slide {
/* kenburnsUpLeft animation */
/*******************************************/
.vegas-animation-kenburnsUpLeft {
-webkit-animation: kenburnsUpLeft ease-out;
animation: kenburnsUpLeft ease-out;
}
@-webkit-keyframes kenburnsUpLeft {
0% {
transform: scale(1.5) translate(10%, 10%);
}
100% {
transform: scale(1) translate(0, 0);
}
}
@keyframes kenburnsUpLeft {
0% {
transform: scale(1.5) translate(10%, 10%);
@@ -507,19 +437,9 @@ body.vegas-container > .vegas-slide {
/* kenburnsUpRight animation */
/*******************************************/
.vegas-animation-kenburnsUpRight {
-webkit-animation: kenburnsUpRight ease-out;
animation: kenburnsUpRight ease-out;
}
@-webkit-keyframes kenburnsUpRight {
0% {
transform: scale(1.5) translate(-10%, 10%);
}
100% {
transform: scale(1) translate(0, 0);
}
}
@keyframes kenburnsUpRight {
0% {
transform: scale(1.5) translate(-10%, 10%);
@@ -533,19 +453,9 @@ body.vegas-container > .vegas-slide {
/* kenburnsUp animation */
/*******************************************/
.vegas-animation-kenburnsUp {
-webkit-animation: kenburnsUp ease-out;
animation: kenburnsUp ease-out;
}
@-webkit-keyframes kenburnsUp {
0% {
transform: scale(1.5) translate(0, 10%);
}
100% {
transform: scale(1) translate(0, 0);
}
}
@keyframes kenburnsUp {
0% {
transform: scale(1.5) translate(0, 10%);
+14 -11
View File
@@ -1,10 +1,10 @@
/*!-----------------------------------------------------------------------------
* Vegas - Fullscreen Backgrounds and Slideshows.
* v2.5.4 - built 2021-01-30
* v2.6.0 - built 2024-07-30
* Licensed under the MIT License.
* http://vegas.jaysalvat.com/
* ----------------------------------------------------------------------------
* Copyright (C) 2010-2021 Jay Salvat
* Copyright (C) 2010-2024 Jay Salvat
* http://jaysalvat.com/
* --------------------------------------------------------------------------*/
@@ -53,7 +53,7 @@
// cover: true,
// video: {
// src: [],
// mute: true,
// muted: true,
// loop: true
// }
// ...
@@ -61,6 +61,7 @@
};
var videoCache = {};
var instances = 0;
var Vegas = function (elmt, options) {
this.elmt = elmt;
@@ -77,6 +78,8 @@
this.timeout = null;
this.first = true;
this.instance = instances++;
this.transitions = [
'fade', 'fade2',
'blur', 'blur2',
@@ -113,14 +116,12 @@
this.support = {
objectFit: 'objectFit' in document.body.style,
transition: 'transition' in document.body.style || 'WebkitTransition' in document.body.style,
video: $.vegas.isVideoCompatible()
transition: 'transition' in document.body.style || 'WebkitTransition' in document.body.style
};
if (this.settings.shuffle === true) {
this.shuffle();
}
this._init();
};
@@ -210,7 +211,7 @@
}
if (this.settings.preload || this.settings.preloadVideos) {
if (this.support.video && this.settings.slides[i].video) {
if (this.settings.slides[i].video) {
if (this.settings.slides[i].video instanceof Array) {
this._video(this.settings.slides[i].video);
} else {
@@ -266,7 +267,7 @@
_video: function (srcs) {
var video,
source,
cacheKey = srcs.toString();
cacheKey = this.instance + srcs.toString();
if (videoCache[cacheKey]) {
return videoCache[cacheKey];
@@ -278,6 +279,8 @@
video = document.createElement('video');
video.preload = true;
video.playsInline = true;
video.controls = false;
srcs.forEach(function (src) {
source = document.createElement('source');
@@ -412,7 +415,7 @@
// Video
if (this.support.video && videoSettings) {
if (videoSettings) {
if (videoSettings instanceof Array) {
video = this._video(videoSettings);
} else {
@@ -420,7 +423,7 @@
}
video.loop = videoSettings.loop !== undefined ? videoSettings.loop : true;
video.muted = videoSettings.mute !== undefined ? videoSettings.mute : true;
video.muted = videoSettings.muted !== undefined ? videoSettings.muted : true;
if (video.muted === false) {
video.volume = 0;
@@ -745,7 +748,7 @@
$.vegas.defaults = defaults;
$.vegas.isVideoCompatible = function () {
return !/(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent);
return true;
};
})(window.jQuery || window.Zepto || window.m4q);
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored Executable
+11
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long