this page에서 개발자가 원활하고 효율적인 전환을 만드는 데 어려움을 겪고 있습니다. 'Clockrun'로고를 뒤집어서 (특히 Chrome에서는) 문자가 완전히 변경된 모습과 로고를 굴릴 때 롤오버가 얼마나 기묘한 지 알 수 있습니다.롤오버에 관한 기발한 jQuery
여기에 jQuery가 사용됩니다. 이것을 수행하는 더 좋은 방법이 있습니까? 그래서 트랜지션이 훨씬 더 부드럽게 페이드 인/아웃합니다. 여기에 effects
http://docs.jquery.com/Effects 당신이 slow
효과 쇼를 추가 할 수 있습니다 http://api.jquery.com/stop/
또는 모양 :
.stop(true, true)
API를 :
jQuery(document).ready(function(){
jQuery(".super_featured_desc").css("opacity",0);
jQuery(".super_featured_logo").each(function(){
jQuery(this).hover(
function() {
jQuery(this).children(".super_featured_desc").css("display","block");
jQuery(this).children(".super_featured_desc").animate({"opacity": 1}, 400);
},
function() {
jQuery(this).children(".super_featured_desc").css("display","none");
jQuery(this).children(".super_featured_desc").animate({"opacity": 0}, 400);
}
)
});
});
</script>
Chrome 또는 FF에서는 나에게 기이하지 않습니다. – jtheman
롤오프하면 계속해서 페이드 인 및 페이드 아웃됩니다. 또한 올바르게 페이드 아웃되지 않습니다. –