kristofferandreasen / react-announcement

📣 Push out beautiful website announcements in React 📣 An NPM package to quickly convey your message to visitors.

Home Page:https://kristofferandreasen.github.io/react-announcement/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make animation transition configurable with prop

kristofferandreasen opened this issue · comments

This enables the user to decide the speed of the animation. It is currently set at 300 ms. Must be added to main file and added to documentation table for all properties.

I have a solution for this, although happy for you to assign it to me for #hacktoberfest (and wait till then) if you like.

Great to hear!
The solution is currently using the CSS transition timer and a timer in the react component.
I didn't have an immediate solution without including styled-components.

Thank you for the great solution and contribution!
I think it makes the small component even more attractive to use and more flexible.