See the Pen Filtering - basic example by christianacca (@christianacca) on CodePen.