Skip to content
Click to replay
Interaction
Click replay
Category
Action
Duration
2.00 s
Frame rate
30 fps
Artboard
32 × 32 px
Lottie size
13.5 kB

Filter

Animated filter icon

Filter is a 2 s micro animation from the action set that replays on every click, like Power and Plus Circle. Click icons typically confirm send, save, refresh, download, add-to-cart and formatting buttons.

Also known asfunnelsort

Free under the MIT license · Markdown version · About the files

Use it

npm install react-useanimations
import UseAnimations from 'react-useanimations';
import filter from 'react-useanimations/lib/filter';

<UseAnimations animation={filter} size={32} />

Static SVG

Filter icon, filter state
filter.svg

Questions about the Filter icon

›Do fast clicks on Filter queue up?

No queue: every click restarts the 2 s run from the first frame. With reduced motion preferred, clicks still reach your onClick but the icon stays still.

›Should the Filter icon be a <button>?

Put its events on a real button with the render prop: render={(events, icon) => <button aria-label="Filter" {...events}><span {...icon} /></button>}. The animation itself stays aria-hidden.

›Can I color the fill of Filter separately?

Yes: strokeColor sets the outlines and fillColor the filled parts, e.g. strokeColor="#e5484d" fillColor="#ffd1d1"; both follow the text color by default.