x
 
1
<!DOCTYPE html>
2
<title>Example</title>
3
<style>
4
.animatedBox {
5
  font-family: sans-serif;
6
  background: beige;
7
  padding: 10px;
8
  column-count: 3;
9
  column-rule: 1px solid orange;
10
  animation: myAnimation 1s linear 1s 1 forwards;
11
}
12
13
@keyframes myAnimation {
14
  100% {
15
    column-rule-width: 7px;
16
  }
17
}
18
</style>
19
20
<div class="animatedBox">
21
<p>If your browser supports the <code>column-count</code> property, this text should span across multiple columns. If it doesn't, then it will only span one long column. </p>
22
<p>When the animation runs, the column rule should change width. If not, your browser either doesn't support the <code>column-rule-width</code> property, or it doesn't support animations on that property.</p>
23
<p>You can always add browser extensions (eg, <code>-webkit-</code>, <code>-moz-</code> etc) to get it working. These have been intentionally omitted for brevity and to provide standards compliant code.</p>
24
<p>For more info about adding browser extensions, see the <a href="https://web.QHMit.com/css/css3/properties/css_column-rule-width.cfm"><code>column-rule-width</code></a> property.</p>
25
</div>