jQuery Cycle Plugin Not Working Inside of Modal Box (Simple Modal Plugin) jQuery Cycle Plugin Not Working Inside of Modal Box (Simple Modal Plugin) wordpress wordpress

jQuery Cycle Plugin Not Working Inside of Modal Box (Simple Modal Plugin)


You are initializing the cycle on document ready. You need to initialize on modal show.

Check their documentation

onShow [Function:null]The callback function used after the modal dialog has opened

Something like this

data.modal({            overlayCss:{backgroundColor:'#FFF'},             containerCss:{backgroundColor:'#fff'},            onShow: function (dialog) {               $('.product-images').cycle({                    fx:      'none',                    next:   '.slide',                   timeout:  0               });             }        });