Есть плагин, над которым я работаю, и я врезался в стену в Chrome. Сценарий отлично работает в FF, но Chrome неправильно отображает эффекты fadeIn и fadeOut. Похоже, что Chrome просто по умолчанию, чтобы показать и скрыть. Есть предложения?
Вы можете увидеть это в действии здесь: http://heartpublications.com
Вот код:
$(document).ready(function() {
function contentRotate(feature) {
if (doAnimate) {
$("#slide1").fadeOut("fast", function (feature) {
return function () {
$("#banner div").hide();
/* FADE IN NEXT ITEM OR GO BACK TO FIRST */
feature.fadeIn("fast", function () {
if ($(this).attr("id") == "slide3") {
setTimeout(function () {
contentRotate($("#banner div:first"));
}, 4000);
}
else {
setTimeout(function () {
contentRotate($(feature.next()));
}, 4000);
}
});
};
}(feature));
}
}
var doAnimate = true;
contentRotate($("#banner div:first"));
});
Любая помощь будет оценена. Спасибо.