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