CodePen

HTML

            
              <img src="http://www.colorhexa.com/0000ff.png">
            
          
!

CSS

            
              img {
  width:100%;
  height:100px;
}
            
          
!

JS

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