Animated Notification Toast
Modern notification toast with smooth animations and multiple styles, perfect for user feedback and alerts in web applications.
Responsive Design
Yes
Dark Mode Support
Yes
lines
211
Browser Compatibility
Chrome · Firefox · Safari · Edge
Live Preview
Interact with the component without leaving the page.
Overview
Modern notification toast with smooth animations and multiple styles, perfect for user feedback and alerts in web applications.
How to use
- Copy the HTML markup into your page.
- Paste the CSS into your stylesheet and ensure the selectors match your markup.
- Paste the JavaScript and load it after the markup.
- Adjust spacing, colors, and text to match your design system.
Customization tips
- Rename class names to avoid collisions with your existing CSS.
- Replace hard-coded colors with CSS variables for theming.
- Verify the layout at 320px, 768px, and 1024px widths.
- Test dark mode with your preferred background and text colors.
HTML
8
lines
CSS
141
lines
JavaScript
62
lines
<div class="toast-container">
<div class="toast-demo">
<button class="toast-btn" data-type="success">Success Toast</button>
<button class="toast-btn" data-type="error">Error Toast</button>
<button class="toast-btn" data-type="warning">Warning Toast</button>
<button class="toast-btn" data-type="info">Info Toast</button>
</div>
</div>
Browser Compatibility
Chrome
>= 50
Firefox
>= 45
Safari
>= 10
Edge
>= 15