CodePen

HTML

            
              <button>Click to Animate</button>
<img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/392/redwood-ukulele-top.jpg" alt="ukulele">
            
          
!

CSS

            
              button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

img { display: block; width: 100%; }

img.animated {
  -webkit-animation: filter-animation 5s infinite;
}

@-webkit-keyframes filter-animation {
  0% {
    -webkit-filter: sepia(0) saturate(2);
  }
  
  50% {
    -webkit-filter: sepia(1) saturate(8);
  }
  
  100% {
    -webkit-filter: sepia(0) saturate(2);
  }
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              function activateFilterAnimation() {
  $('img').toggleClass('animated');
}

$('button').on('click', activateFilterAnimation);
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................