CodePen

HTML

            
              
            
          
!

CSS

            
              @import "compass/css3";

body {
    background: blue;
    transition: 1s all ease;
}
@media (max-width: 700px) {
  body {  
    background: red;
  }
}
@media (min-width: 800px) {
  body {  
    background: green;
  }
}
            
          
!

JS

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