运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,暗色/亮色
前往 Spaces
<!DOCTYPE html> <html> <head> <style> #myDIV { background-color:lightblue; display: inline-block; min-inline-size: 100px; animation: mymove 5s infinite; } @keyframes mymove { 50% {min-inline-size: 200px;} } </style> </head> <body> <h1>Animation of min-inline-size</h1> <p>Gradually change the min-inline-size property from 100px to 200px, and back to 100px. The content keeps the box from getting smaller in the inline direction:<p> <div id="myDIV"> This is my DIV element. </div> </body> </html>