我有一个这样定义的HTML元素:CSS3 - 顺时针旋转比逆时针
Toggle
function toggle(eid) {
var el=document.getElementById(eid);
if (el) {
el.className +=el.className ? 'rotate-clockwise' : 'rotate-counter-clockwise';
}
}
然后我已经定义是这样我的CSS:
。rotated {
transform: rotate(90deg);
}
@keyframes rotateClockwise { from { ? } to { ? } }
。rotate-clockwise {
animation rotateClockwise 0.1s linear;
}
@keyframes rotateCounterClockwise { from { ? } to { ? } }
。rotate-counter-clockwise {
animation rotateCounterClockwise 0.1s linear;
}
如果您觉得本文的内容对您的学习有所帮助:
关键字:
jquery