0
我试图延迟彩盒打开,但如果延迟出现,它根本不运行。我尝试了很多东西,但我被卡住了。任何人都知道如何让第一个动画运行时,让colorbox暂停?它是6000毫秒,但我希望彩盒在3000毫秒开始。延迟彩盒在另一个动画期间启动
谢谢!
这工作:
$(document).ready(function(){
$('a[data-test]').click(function(){
var anim = $(this).attr('data-test');
buttonAnim(anim);
$.colorbox({href:"contact/index.html"});
;})
这工作,但0毫秒的延迟:
$(document).ready(function(){
$('a[data-test]').click(function(){
var anim = $(this).attr('data-test');
buttonAnim(anim);
$('a[data-test]').delay(3000).colorbox({href:"contact/index.html"});
;})