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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

0
vegas/_js/overlays/01.png → vegas/js/overlays/01.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

0
vegas/_js/overlays/02.png → vegas/js/overlays/02.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

0
vegas/_js/overlays/03.png → vegas/js/overlays/03.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 98 B

After

Width:  |  Height:  |  Size: 98 B

0
vegas/_js/overlays/04.png → vegas/js/overlays/04.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

0
vegas/_js/overlays/05.png → vegas/js/overlays/05.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 102 B

After

Width:  |  Height:  |  Size: 102 B

0
vegas/_js/overlays/06.png → vegas/js/overlays/06.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

0
vegas/_js/overlays/07.png → vegas/js/overlays/07.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 104 B

After

Width:  |  Height:  |  Size: 104 B

0
vegas/_js/overlays/08.png → vegas/js/overlays/08.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 106 B

After

Width:  |  Height:  |  Size: 106 B

0
vegas/_js/overlays/09.png → vegas/js/overlays/09.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 118 B

After

Width:  |  Height:  |  Size: 118 B

108
vegas/_js/vegas.css → vegas/js/vegas.css Normal file → Executable file
View File

@@ -325,17 +325,7 @@ 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);
}
animation: kenburns ease-out;
}
@keyframes kenburns {
@@ -351,17 +341,7 @@ 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);
}
animation: kenburnsDownLeft ease-out;
}
@keyframes kenburnsDownLeft {
@@ -377,17 +357,7 @@ 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);
}
animation: kenburnsDownRight ease-out;
}
@keyframes kenburnsDownRight {
@@ -403,17 +373,7 @@ 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);
}
animation: kenburnsDown ease-out;
}
@keyframes kenburnsDown {
@@ -429,17 +389,7 @@ 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);
}
animation: kenburnsLeft ease-out;
}
@keyframes kenburnsLeft {
@@ -455,17 +405,7 @@ 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);
}
animation: kenburnsRight ease-out;
}
@keyframes kenburnsRight {
@@ -481,17 +421,7 @@ 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);
}
animation: kenburnsUpLeft ease-out;
}
@keyframes kenburnsUpLeft {
@@ -507,17 +437,7 @@ 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);
}
animation: kenburnsUpRight ease-out;
}
@keyframes kenburnsUpRight {
@@ -533,17 +453,7 @@ 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);
}
animation: kenburnsUp ease-out;
}
@keyframes kenburnsUp {

31
vegas/_js/vegas.js → vegas/js/vegas.js Normal file → Executable file
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');
@@ -291,7 +294,7 @@
},
_fadeOutSound: function (video, duration) {
var self = this,
var self = this,
delay = duration / 10,
volume = video.volume - 0.09;
@@ -307,7 +310,7 @@
},
_fadeInSound: function (video, duration) {
var self = this,
var self = this,
delay = duration / 10,
volume = video.volume + 0.09;
@@ -355,7 +358,7 @@
video,
img;
var transition = this._options('transition'),
var transition = this._options('transition'),
transitionDuration = this._options('transitionDuration'),
animation = this._options('animation'),
animationDuration = this._options('animationDuration');
@@ -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);

2
vegas/_js/vegas.min.css → vegas/js/vegas.min.css vendored Normal file → Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

11
vegas/js/vegas.min.js vendored Executable file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long