@keyframes myAnimation {
0% {
transform: scale(1);
/*开始为原始大小*/
}
33% {
transform: scale(0.8);
/*放大1.1倍*/
}
67% {
transform: scale(1);
}
}
$('.android,.ios').on("click", function() {
$(this).css('animation', 'myAnimation 0.2s forwards');
setTimeout(() => {
$(this).css('animation', '');
}, 200);
})