Create add-on package for animated icons
Closed this issue · 1 comments
I have created animations of some of the Carbon Icons, to be used in the API Connect landing page. We would like to start an animation library to make the existing animations available for others to use, and to enable others to design and contribute additional animations.
Prototype of animations: https://pages.github.ibm.com/Krista-Starr/motion/#/landing-page
(hover on the tiles)
Animations are created using CSS and are of the form:
.trigger-selector:hover .icon-element-selector {
... some CSS
}
The user of the package could either use a pre-canned trigger selector e.g. .carbon-animate-icon:hover, or use an SCSS mix-in to apply the animation to a trigger-selector of their choice.
We would need to have classes added on svg elements, perhaps optionally based on a component switch, and ideally added by the icon builder code.
Credit to @lee-chase for the above implementation ideas.
Re-opening issue in Carbon monorepo.