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"});
;})