We also add a prop (withAnimation) that will wrap the Emotion with an animation container, but the animation can be attach to any parent that contain an Emoticon component through the css snippet
Popover
We also add a new renderAnimation prop to Popover that would allow us to change the wrapper element around Popover to customize the animation
Feature
For some CSAT stuff we are working on, we though it would be nice to animate
Emotion
just like we do inRateAction
.We extracted the animation code into a css snippet that can be include anywhere when needed
https://github.com/helpscout/hsds-react/blob/eb95abd915327f549a499cd64ff045ca1caca8f6/src/components/Emoticon/Emoticon.css.js#L20-L54
We also add a prop (
withAnimation
) that will wrap the Emotion with an animation container, but the animation can be attach to any parent that contain anEmoticon
component through the css snippetPopover
We also add a new
renderAnimation
prop toPopover
that would allow us to change the wrapper element around Popover to customize the animation