<div id="block">click me</div>
#block{
  	position:absolute;
    left: 50%;
    top: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    background: #0c8;
    line-height: 100px;
    text-align: center;
    color: #fff;
    cursor: pointer;
    border-radius: 100%;
    
    &.play {
      border-radius: 0;
      transform: scale(2.0);
      background: #c80;
  	  transition: all 2.0s cubic-bezier(0.68, -0.55, 0.265, 1.55) 3s;
    }
    &.play2 {
      background: #c8f;
      transition: all 2.0s linear 0.5s; 
	    transform: scale(2.0) rotate(360deg);
    }
}
  block.addEventListener('click', function(){
  	block.className = 'play play2';
  });

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.