老姚
5 天前 6F有意思展开代码javascript 代码效果预览
- [].slice.call(document.getElementsByTagName('*')).forEach((ele) = >{
- ele.style.setProperty('animation', 'interesting 2s infinite')
- });
- document.body.innerhtml += "<style>@keyframes interesting{from{transform:rotate(-2deg)}to{transform: rotate(2deg);}}</style>";
来源: http://www.w3cfuns.com/notes/35320/f2dd4e0475d3ee1a7d57b46cda203f96.html