<div class="container">
  <h2>Background Transition</h2>
	<a href="#" 
     class="radial-out">Radial Out</a>			
</div>
@import "compass";

body
{ font-size: 16px;
  font-family: Arial, sans-serif;
}

*
{ margin: 0;
  padding: 0;
}
.container
{ margin: 0 auto;
  width: 10%;
  h2{
    text-align: center;
    margin: 30px 0;
  }
  a{
    background-color: #ecf0f1;
    box-shadow: 0 2px 1px rgba(0,0,0,.2);
    color: #2980b9;
    display: block;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 15px 0;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    &:hover{
      color: #fff;
      box-shadow: 0 2px 1px rgba(0,0,0,.5);
      }
   }
}
  
  
  // radial-out effect
.radial-out
{
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden; 
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  -webkit-transition: color 300ms;
  transition: color 300ms;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  &:before
  {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #2098d1;
    border-radius: 100%;
   
    transform: scale(0);
   
    transition-property: transform;
   
    transition: 300ms ease-out;
  
  }
  &:hover:before
  { transform: scale(2);
  }
   &:hover:active
  { transform: scale(0);
  }
}  
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.