Skip to content

feat(ui): add smooth exit animations for modals - #40

Open
bugragungoz wants to merge 1 commit into
masterfrom
jules-ui-modal-animation-9303383637367644224
Open

feat(ui): add smooth exit animations for modals#40
bugragungoz wants to merge 1 commit into
masterfrom
jules-ui-modal-animation-9303383637367644224

Conversation

@bugragungoz

Copy link
Copy Markdown
Owner

Added a micro-UX enhancement by implementing smooth exit animations (140ms fade and scale out) for all modal overlays. Replaced instances of style.display = 'none' in src/app.js with window.closeModal(overlay), which adds a .closing CSS class before hiding the element. Recorded the paradigm in .Jules/palette.md.


PR created automatically by Jules for task 9303383637367644224 started by @bugragungoz

Replaced abrupt display: 'none' closures with a `window.closeModal` helper
that applies a `.closing` class. Added matching 140ms CSS animations
(`ci-overlay-fade-out`, `ci-modal-pop-out`) to `src/style.css` for tactile feedback.
Updated `.Jules/palette.md` to document the new pattern.

Co-authored-by: bugragungoz <209906170+bugragungoz@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Copilot AI review requested due to automatic review settings July 9, 2026 00:24

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds smooth “exit” animations for modal overlays by introducing a window.closeModal(overlay) helper that applies a .closing class before hiding the overlay, and wiring some existing close paths to use it.

Changes:

  • Added .modal-overlay.closing / .modal-overlay.closing .modal exit animations (fade + scale/translate) to src/style.css.
  • Replaced some direct overlay.style.display = 'none' modal closes in src/app.js with window.closeModal(overlay), and updated generic close handlers (data-close, backdrop click, Escape).
  • Documented the new modal-closing paradigm in .Jules/palette.md.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/style.css Adds keyframes and .closing rules for modal exit animations.
src/app.js Introduces window.closeModal and routes several modal-close actions through it.
.Jules/palette.md Documents the intended “always use window.closeModal” pattern.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app.js
Comment on lines +1270 to +1277
window.closeModal = function(overlay) {
if (!overlay) return;
overlay.classList.add('closing');
setTimeout(() => {
overlay.style.display = 'none';
overlay.classList.remove('closing');
}, 140);
};
Comment thread src/app.js
Comment on lines +1270 to +1273
window.closeModal = function(overlay) {
if (!overlay) return;
overlay.classList.add('closing');
setTimeout(() => {
Comment thread .Jules/palette.md
@@ -0,0 +1,4 @@
## 2024-07-09 - [Modal Closing Animations]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants