1
내가 jQuery를 가진 배경 그라데이션 애니메이션을하기 위해 노력하고있어
이 같은 : 나는 DIST를 빌드 할 때설정 배경 그라데이션 - jshint 오류
this.$next.css('line-indent', 0).animate({
'line-indent': 100
}, {
"duration": 750,
"step": function(value) {
$(this).css({
"background": color,
"background": "moz-radial-gradient (50% 50%, ellipse cover, transparent " + value + "%, " + color + " " + value + "%))",
"background": "-webkit-radial-gradient(50% 50%, circle, transparent " + value + "%, " + color + " " + value + "%)",
"background": "radial-gradient(circle at center, transparent " + value + "%, " + color + " " + value + "%)"
})
},
"easing": 'easeInQuint',
"complete": function() {
$(this).css({
"transition": 'none',
"background": color,
"background": "moz-radial-gradient (50% 50%, ellipse cover, transparent 0%, " + color + " 0%)",
"background": "-webkit-radial-gradient(50% 50%, circle, transparent 0%, " + color + " 0%)",
"background": "radial-gradient(circle at center, transparent 0%, " + color + " 0%)",
"width": 0
})
self.$loader.fadeIn(0);
}
});
이를 제외하고, 정확하게 내가 원하는 방식으로 작동합니다 jshint는 background
속성에 대해 duplicate key
오류를 발생시킵니다. 이는 의미가 있습니다. 내 질문은 어떻게 다른 모든 브라우저에 대한 배경 그라디언트를 설정하는 동안이 오류를 방지하려면 무엇입니까?