dfrankland / hyper-tab-icons

💅 Icons in the header tabs for the current running process in Hyper.app.
91 stars 16 forks source link

Support simple primitives for icon animation #8

Open jbergstroem opened 8 years ago

jbergstroem commented 8 years ago

..would be pretty sweet to have an animated cog when compiling node, hey? 😄

dfrankland commented 8 years ago

So the icons in the tab are icon fonts, so the only way to do this would be to use simple CSS animations. There'd be no way to do animated cogs (multiple interleaved teethed cogs), unless we switch to gif or something else.

jbergstroem commented 8 years ago

I was thinking of just using css animations but found no good way of adding an activeStyle per icon.

jbergstroem commented 8 years ago

How about

config.tabIcons.mapActiveStyle: {
  'gcc': 'animation: spin1 2s linear;'
}