function slideUpMain() {
$(".bgcolor").slideUp(1000).delay(9000);
}
function sliderBg() {
$('.bgcolor').vegas({
delay: 6000,
timer: false,
loop:false,
transitionDuration: 3000,
animation: 'kenburns',
slides: [
{ src: "img/image1.jpg" },
{ src: "img/image1.jpg" },
{ src: "img/image1.jpg"}
]
});
}
slideUpMain()
выполнилась после окончания работы sliderBg()
. function sliderBg() {
$('.bgcolor').vegas({
delay: 6000,
timer: false,
loop:false,
transitionDuration: 3000,
animation: 'kenburns',
slides: [
{ src: "img/image1.jpg" },
{ src: "img/image1.jpg" },
{ src: "img/image1.jpg"}
],
end: slideUpMain
});