css3-animations wtf

by Keith Jeter

HTML

<span>ertretre</span>
<div>Sample Text</div>
<span>ertretre</span>

CSS

@-moz-keyframes foo {
  from {
    width: 100px;
    height: 20px;
  }
  to {
    width: 103px;
    height: 21px;
    /* background: grey; */
  }
}

@-ms-keyframes foo {
  from {
    width: 100px;
    height: 20px;
  }
  to {
    width: 103px;
    height: 21px;
    /* background: grey; */
  }
}

@-webkit-keyframes foo {
  from {
    width: 100px;
    height: 20px;
  }
  to {
    width: 103px;
    height: 21px;
    /* background: grey; */
  }
}

span {
  float: left;
}

div {
  float: left;
  text-align: center;
  cursor: pointer;
  padding: 2px;
  margin: 0 10px 0 10px;
  border-radius: 5px;
  background: #ddd;
  width: 100px;
  height: 20px;
  -moz-animation: .5s foo infinite alternate;
  -ms-animation: .5s foo infinite alternate;
  -webkit-animation: .5s foo infinite alternate;
}