Skip to content

feat: add Toast Notification Component (#1184)#1268

Merged
SAPTARSHI-coder merged 1 commit into
SAPTARSHI-coder:mainfrom
Pcmhacker-piro:feat/toast-1184
Jun 4, 2026
Merged

feat: add Toast Notification Component (#1184)#1268
SAPTARSHI-coder merged 1 commit into
SAPTARSHI-coder:mainfrom
Pcmhacker-piro:feat/toast-1184

Conversation

@Pcmhacker-piro
Copy link
Copy Markdown

Closes #1184

Pull Request Description

Adds a toast notification component in submissions/examples/toast/ with a fixed-position stacking container, 4 color variants (success/danger/warning/info), slide-in entrance animation, fade-out exit animation, close button, and 4 position modifiers (top-right/top-left/bottom-right/bottom-left).


Type of Change

  • 🧩 New component

Submission Checklist

  • All changes are inside submissions/examples/toast/
  • Includes demo.html — self-contained, opens in browser with no server
  • Includes style.css — raw CSS for the proposed feature
  • Includes README.md — what it does, how to use it, why it fits EaseMotion CSS
  • No changes to core/
  • No changes to components/
  • One feature per PR (no bundled unrelated changes)

Feature Description

What does this add?

A fixed-position toast notification system with stacking container, 4 color variants (success/danger/warning/info), entrance/exit animations, close button, and 4 corner positioning options.

How does a developer use it?

<div class="ease-toast-container">
  <div class="ease-toast ease-toast--success" role="alert">
    <span class="ease-toast-icon"></span>
    <span class="ease-toast-msg">File uploaded successfully</span>
    <button class="ease-toast-close" aria-label="Dismiss">×</button>
  </div>
</div>
Position modifiers: ease-toast-container--top-left, --bottom-right, --bottom-left.
Why does it fit EaseMotion CSS?
Slide-in entrance (ease-kf-toast-in) and fade-out exit, 4 color variants with accent borders, animated icon backgrounds, stacking container with role="alert", and all 4 corner positions. Respects prefers-reduced-motion.
Demo
- Demo added (demo.html works by opening directly in a browser)
Browser Testing
- Chrome
- Firefox
- Edge
- Safari (optional but appreciated)
Notes for Maintainer
Inline JS handles dynamic toast creation, close button dismissal (adds .ease-toast--exit then removes after 300ms), and auto-dismiss after 4 seconds. The exit direction mirrors the entrance direction for left-positioned containers.

Closes #1184

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

✅ Submission Validation Passed!

Great job! All required files are present.

📁 Folder: submissions/examples/toast

Files found:

  • demo.html
  • style.css
  • README.md

🚀 Next Steps:

  • The maintainer will review your PR
  • Respond to any feedback if requested
  • Once approved, your contribution will be merged!

Thank you for contributing to EaseMotion CSS! 🎉

@Pcmhacker-piro
Copy link
Copy Markdown
Author

heyy @SAPTARSHI-coder
i fixed the assign issue so pls check thsi

@SAPTARSHI-coder SAPTARSHI-coder added accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) enhancement New feature or request good first issue Good for newcomers GSSoC-26 Official GSSoC 2026 issue gssoc:approved Approved for GSSoC contributions integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement labels Jun 4, 2026
@SAPTARSHI-coder SAPTARSHI-coder merged commit 9f979b1 into SAPTARSHI-coder:main Jun 4, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accepted Contribution approved for integration into EaseMotion CSS animation Animation effects, hover interactions, motion ideas, transitions component New UI components (buttons, cards, modals, tooltips, badges) contribution enhancement New feature or request good first issue Good for newcomers gssoc:approved Approved for GSSoC contributions GSSoC-26 Official GSSoC 2026 issue integrated Successfully merged and included in the framework level:intermediate Requires moderate project understanding type:feature New functionality or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add ease-toast Component — Toast Notification with Slide-in/Slide-out Animations

2 participants