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