运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> #myDIV { margin: auto; border: 1px solid black; outline: coral solid 5px; width: 300px; height: 300px; animation: mymove 5s infinite; } @keyframes mymove { 50% {outline-offset: 50px;} } </style> </head> <body> <h1>Animation of outline-offset</h1> <p>Gradually change the outline-offset property from 0 to 50px, and back to 0:<p> <div id="myDIV"></div> </body> </html>