CodePen

HTML

            
              
            
          
!

CSS

            
              @function box($direction)
  @return linear-gradient(to $direction, white 20%, transparent 20%, transparent 80%, white 80%)

html
  background: box(right), box(bottom), blue
  height: 100%
            
          
!

JavaScript

            
              
            
          
!
999px
Loading ..................