欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!
  我有一个这样定义的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;
 
  }

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h62619.shtml