カラーボックスが開くのを遅らせようとしていますが、遅延が存在する場合はまったく実行されません。私はたくさんのことを試みましたが、行き詰まっています。最初のアニメーションの実行中にカラーボックスを一時停止する方法を知っている人はいますか?6000msですが、カラーボックスは3000msから始めたいです。
ありがとう!
これは機能します:
$(document).ready(function(){
$('a[data-test]').click(function(){
var anim = $(this).attr('data-test');
buttonAnim(anim);
$.colorbox({href:"contact/index.html"});
;})
これは機能しますが、0msの遅延があります:
$(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"});
;})