<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
border:1px solid #000;
-webkit-column-width: 100px; /* Chrome, Safari, Opera */
-moz-column-width: 100px; /* Firefox */
column-width: 100px;
animation: myAnimation 5s infinite;
-webkit-animation: myAnimation 5s infinite; /* Safari 4.0 - 8.0 */
}
@keyframes myAnimation {
50% {
-webkit-column-width: 200px; /* Chrome, Safari, Opera */
-moz-column-width: 200px; /* Firefox */
column-width: 200px;
}
}
/* Safari 4.0 - 8.0 */
@-webkit-keyframes myAnimation {
50% {
-webkit-column-width: 200px; /* Chrome, Safari, Opera */
-moz-column-width: 200px; /* Firefox */
column-width: 200px;
}
}
</style>
</head>
<body>
<h1>CSS Animatable column-width</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>