Update Vegas
11
vegas/_js/vegas.min.js
vendored
0
vegas/_js/overlays/01.png → vegas/js/overlays/01.png
Normal file → Executable 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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 118 B |
90
vegas/_js/vegas.css → vegas/js/vegas.css
Normal file → Executable 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%);
|
||||
25
vegas/_js/vegas.js → vegas/js/vegas.js
Normal file → Executable 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);
|
||||