HTML
CSS
JavaScript
HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"> 
<title>笔下光年</title>
</head>
<body>

<p>column-width 属性支持动画效果。</p>
<p><b>注意:</b>Internet Explorer 9 及更早 IE 版本不支持 CSS 动画。</p>

<p>逐步改变列间的宽度,从 300px 到 100px:<p>
<div id="myDIV">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii legunt saepius.
</div>

</body>
</html>
CSS
#myDIV {
    border: 1px solid black;
    /* Firefox */
    -moz-column-width: 300px;
    /* Chrome, Safari, Opera */
    -webkit-column-width: 300px;
    -webkit-animation: mymove 5s infinite;
    /* Standard syntax */
    column-width: 300px;
    animation: mymove 5s infinite;
}

/* Chrome, Safari, Opera */
@-webkit-keyframes mymove {
    50% {-webkit-column-width: 100px;}
}

/* Standard syntax */
@keyframes mymove {
    50% {
        -moz-column-width: 100px; /* Firefox */
        column-width: 100px;
    }
}
JavaScript