場景:
?
點擊其他地方 div 抖動 查看了他的
點擊添加css樣式pulse?
如圖:
?
css文件路徑chrome://resources/css/overlay.css有段
/* keyframes used to pulse the overlay */
@-webkit-keyframes pulse {
0% {
transform: scale(1);
}
40% {
transform: scale(1.02);
}
60% {
transform: scale(1.02);
}
100% {
transform: scale(1);
}
}
.overlay .page.pulse {
-webkit-animation-duration: 180ms;
-webkit-animation-iteration-count: 1;
-webkit-animation-name: pulse;
-webkit-animation-timing-function: ease-in-out;
}
怎么我移植到我 (body 點擊的時候給div 添加這個樣式)的項目中添加這個css就無效呢?問題出現在?
?
js代碼:
$(document).click(function() {
objData.configForm.addClass("pulse");
setTimeout(function() {
objData.configForm.removeClass("pulse");
},2000);
//alert();
});
添加回答
舉報
0/150
提交
取消