<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
border:1px solid #000;
-webkit-columns: 100px 4; /* Chrome, Safari, Opera */
-moz-columns: 100px 4; /* Firefox */
columns: 100px 4;
animation: myAnimation 5s infinite;
-webkit-animation: myAnimation 5s infinite; /* Safari 4.0 - 8.0 */
}
@keyframes myAnimation {
50% {
-webkit-columns: 200px 2; /* Chrome, Safari, Opera */
-moz-columns: 200px 2; /* Firefox */
columns: 200px 2;
}
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes myAnimation {
50% {
-webkit-columns: 200px 2; /* Chrome, Safari, Opera */
-moz-columns: 200px 2; /* Firefox */
columns: 200px 2;
}
}
</style>
</head>
<body>
<h1>CSS Animatable columns</h1>
<div>
Elon Musk is the co-founder and CEO at Tesla, overseeing all product design, engineering and manufacturing of the company's electric vehicles, battery products, and Solar Roofs.
</div> </body>
</html>