Git Product home page Git Product logo

Comments (4)

jaysalvat avatar jaysalvat commented on July 29, 2024

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.

jaysalvat avatar jaysalvat commented on July 29, 2024

Added to the next release, thanks again.

from vegas.

ceelian avatar ceelian commented on July 29, 2024

Can't find globalfade in the current v1.3.3. released 2013-09-03 13:27.
Any reason for that?

Cheers.

from vegas.

jaysalvat avatar jaysalvat commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.