Add the filtered class initially to avoid a style recalculation in `filter` on load.

Removed commented out code, saved the transition duration name to a
variable instead of looking it up each time for each element.