HTML CSS examples for CSS Property:transform
CSS3 animation repeat transform effect
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> img:hover {<!--from w w w. j a v a 2 s. c om--> -webkit-animation-name: thumb; -webkit-animation-duration: 1000ms; -webkit-transform-origin:50% 50%; -webkit-animation-iteration-count: infinite; -webkit-animation-timing-function: linear; } @-webkit-keyframes thumb { 0% { -webkit-transform: rotate(3deg); } 50% { -webkit-transform: rotate(-3deg); } 100% { -webkit-transform: rotate(3deg); } } </style> </head> <body> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> </body> </html>