Skip to content

Commit

Permalink
Made the close animation faster for OnScreen notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
FMaz008 committed Oct 17, 2024
1 parent 3fd0feb commit d3a0b71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion page/notifications.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h1>Notifications monitoring:</h1>
<i>
New notifications will automatically pop up here. No need to refresh the page unless you want to clear
the list, or experiencing resources usage issues. Do not rely on notification as your sole source of
checking for new items; You will miss items switching from RFY to AI.
checking for new items; You will miss items switching from RFY to AI, re-drops, etc.
</i>
</div>
<div class="monitor-toolbar">
Expand Down
4 changes: 2 additions & 2 deletions scripts/ScreenNotifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ class ScreenNotifier {
return new Promise((resolve) => {
let opacity = 1;
let position = 0; // Assuming the initial left position is 0, adjust as needed.
const duration = 250; // Animation duration in milliseconds.
const frames = 60; // Number of frames for the animation.
const duration = 100; // Animation duration in milliseconds.
const frames = 20; // Number of frames for the animation.
const interval = duration / frames; // Time per frame.
const incrementOpacity = 1 / frames; // Opacity decrease per frame.
const incrementPosition = 50 / frames; // Position change per frame.
Expand Down

0 comments on commit d3a0b71

Please sign in to comment.