Animations
animation takes one of seventeen gestures. Each tile below plays one on the glyph it suits, continuously, with animation-mode="always". Use the switch to pause them all.
<template>
<NbIcon name="arrows-clockwise" animation="refresh" />
<NbIcon name="bell" animation="wobble" animation-mode="hover" />
</template>animation-mode is always (the default) or hover, which plays the gesture only while the pointer is over the icon. An animated icon stays the size of a static one: only the gesture moves. Each cycle is one second (half that for the quick gestures, five for cog), tuned to the icon like every loop in the library, and the gestures ease on --nb-ease-standard.
Reduced motion
Under prefers-reduced-motion: reduce the travel stops, and NbIcon handles it for you. The three marked loading (refresh, cog, hourglass) say "working", so they keep looping as an opacity breath instead, because a frozen loading glyph reads as a hung page. The other fourteen stand still. Turn on reduced motion in your operating system to see it on this page. See Motion accessibility.