a(href="#").coolBeans hover me
View Compiled
@import url("https://fonts.googleapis.com/css?family=Roboto:100")
  
*
  box-sizing border-box

body
  background-color indigo
  display flex
  align-items center
  justify-content center
  height 100vh
  width 100vw
  
.coolBeans
  border 2px solid currentColor
  border-radius 3rem
  color yellow
  font-family roboto
  font-size 4rem
  font-weight 100
  overflow hidden
  padding 1rem 2rem
  position relative
  text-decoration none
  transition .2s transform ease-in-out
  will-change transform
  z-index 0
  
  &::after
    background-color yellow
    border-radius 3rem
    content: ''
    display block
    height 100%
    width 100%
    position absolute
    left 0
    top 0
    transform translate(-100%, 0) rotate(10deg)
    transform-origin top left
    transition .2s transform ease-out
    will-change transform
    z-index -1
    
  &:hover::after
    transform translate(0, 0)
    
  &:hover
    border 2px solid transparent
    color indigo
    transform scale(1.05)
    will-change transform
    
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.