좋아, 마침내 알아 냈어. 엄지 손톱 위로 마우스를 가져갈 때 투명도가 사라지는 것은 "jquery.opacityrollover.js"라는 스크립트로 처리됩니다.
투명도는 jquery "animate"기능으로 애니메이션되지 않지만 대신 "fadeTo"기능으로 애니메이션됩니다. 코드는 다음과 같습니다
/**
* jQuery Opacity Rollover plugin
*
* Copyright (c) 2009 Trent Foley (http://trentacular.com)
* Licensed under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
*/
;(function($) {
var defaults = {
mouseOutOpacity: 0.67,
mouseOverOpacity: 1.0,
fadeSpeed: 'fast',
exemptionSelector: '.selected'
};
$.fn.opacityrollover = function(settings) {
// Initialize the effect
$.extend(this, defaults, settings);
var config = this;
function fadeTo(element, opacity) {
var $target = $(element);
if (config.exemptionSelector)
$target = $target.not(config.exemptionSelector);
$target.fadeTo(config.fadeSpeed, opacity);
}
this.css('opacity', this.mouseOutOpacity)
.hover(
function() {
fadeTo(this, config.mouseOverOpacity);
},
function() {
fadeTo(this, config.mouseOutOpacity);
});
return this;
};
})(jQuery);
그래서 내가 재판을 통해 당신이해야 할 모든이 변경되어 테스트를 파악
$target.fadeTo(config.fadeSpeed, opacity);
에
$target.stop().fadeTo(config.fadeSpeed, opacity);