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