-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding of fade effect to angular2-flash-messages #23
Comments
Hi @darsana! |
Hi @darsana, Bit late, but it might still help you or someone else who wants to do this. You can get this effect with css. Create a css rule with keyframes that will fade in and out over a time period. @Keyframes flashfade { Then just include this class when calling the function, and set the effect to last as long as the css animation. this._flashMessagesService.show( message , { cssClass: 'flashfade alert-success', timeout: 6000 }); |
@seantrant |
@lokeshrmitra for this to work you need to add the css rules to styles.css |
Hi...
currentley i am using the flash message like below
this._flashMessagesService.show('Added Successfully!', { cssClass: 'alert-success', timeout: 1900 });
How an i add the fade effect to the message ?
The text was updated successfully, but these errors were encountered: