tomchentw / react-toastr

React.js toastr component
https://tomchentw.github.io/react-toastr/
MIT License
619 stars 112 forks source link

Custom animation example #25

Closed jonaswindey closed 9 years ago

jonaswindey commented 9 years ago

How do I set the props of the animation? I tried:

toaster.success(
          'Welcome welcome welcome!!',
          'You are now home my friend. Welcome home my friend.', {
            timeOut: 2000,
            closeButton: true,
            animation: {
              showAnimation: 'fadeIn',
              hideAnimation: 'fadeOut'
            }
          });

but no success.

Edit: nevermind, the trick is not to forget "animated" in the style. Issue can be closed.

toaster.success(
          'Welcome welcome welcome!!',
          'You are now home my friend. Welcome home my friend.', {
            timeOut: 2000,
            closeButton: true,
            showAnimation: 'animated fadeIn',
            hideAnimation: 'animated fadeOut'
          });
tomchentw commented 9 years ago

Thanks!