Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<title>flexbox | transitioned order</title>
<meta name="flags" content="interact">
<style>
div {
display: flex;
}
span {
background: yellow;
width: 1em;
height: 2em;
}
.test {
background: #3366cc;
order: 0;
}
div:hover .test {
transition: order 10s;
order: -1;
}
p~div {
margin: 1em;
float: left;
display: block;
}
p~div span {
float: left;
}
</style>
<div>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span class="test">x</span>
<span>x</span>
</div>
<p>Verify that the box above looks exactly like the first of the boxes
below. Then hover the box above and leave the mouse there for 1+
seconds. After the specified time, the box above should look exactly
like the second of the boxes below.</p>
<div>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span class="test">x</span>
<span>x</span>
</div>
<div>
<span class="test">x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
<span>x</span>
</div>