xxxxxxxxxx
<html lang="en">
<head>
<meta charset="utf-8">
<title>Example of CSS3 flex-shrink Property Animation</title>
<style>
.flex-container {
width: 300px;
height: 200px;
font-size: 32px;
border: 1px solid black;
display: flex; /* Safari */
display: flex; /* Standard syntax */
}
.flex-container div {
flex: 1 1 200px; /* Safari 6.1+ */
flex: 1 1 200px; /* IE 10 */
flex: 1 1 200px; /* Standard syntax */
}
.item1 {
background: #e84d51;
}
.item2 {
background: #7ed636;
}
.item3 {
background: #2f97ff;
}
.animated {
animation: test 4s infinite; /* Chrome, Safari, Opera */
animation: test 4s infinite;
}
/* Chrome, Safari, Opera */
@-webkit-keyframes test {
50% {flex-shrink: 2;}
}
/* Standard syntax */
@keyframes test {
50% {flex-shrink: 2;}
}
</style>
</head>