Comments (4)
Hi!
Thanks for the contribution.
Le 15 avr. 2012 à 07:15, maktouch a écrit :
Hello,
I kinda liked the possibility that you can customize fade time for each slideshow, but didn't like that I couldn't put a global one.
So instead of...
$.vegas('slideshow', {
backgrounds:[
{ src:'/img/bg1.jpg', fade:1000 },
{ src:'/img/bg2.jpg', fade:1000 },
{ src:'/img/bg3.jpg', fade:1000 }
]
})It becomes
$.vegas('slideshow', {
globalfade: 1000,
backgrounds:[
{ src:'/img/bg1.jpg'},
{ src:'/img/bg2.jpg'},
{ src:'/img/bg3.jpg'}
]
})To do so, I added at line 209
if ( typeof(settings.fade) == "undefined") {
settings.fade = options.globalfade;
}and added the default settings at line 170.
var options = {
step: step,
globalfade: 1000,
delay: delay,
preload: false,
backgrounds: backgrounds,
walk: function() {}
};Cheers.
Reply to this email directly or view it on GitHub:
#14
from vegas.
Added to the next release, thanks again.
from vegas.
Can't find globalfade in the current v1.3.3. released 2013-09-03 13:27.
Any reason for that?
Cheers.
from vegas.
Hello.
The 'globalfade' param is simply named 'fade' since day one :)
if ( typeof(settings.fade) == "undefined") {
settings.fade = options.fade;
}
from vegas.
Related Issues (20)
- how to play video from youtube HOT 1
- Slideshow picture and movies HOT 1
- Strange Glitch with Blur transition HOT 1
- Blur transition blinks in Chrome HOT 2
- Vegas asynchronous load HOT 2
- Optimize images for faster loading HOT 2
- Effect kenburns reverse HOT 3
- Using option to use playsinline for videos? HOT 1
- Using sprite image HOT 1
- Vegas & m4q
- Video Error: Uncaught (in promise) DOMException on vegas.min.js:10
- jQuery inside wrapper
- Three Video Format (mp4,webm,ogv)? HOT 1
- Overlay issue - Overlay does not show HOT 2
- why cannot my image fill my div ?
- Adding a custom overlay adds a gray background at the bottom of the slider
- None of the images are showing HOT 1
- Incorrect padding in Firefox HOT 1
- :: THE AUDIO OF THE VIDEOS DOES NOT SOUND :: HOT 1
- Image transition issue with cover:false HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vegas.