Skip to content

Commit

Permalink
Aligned delay before div removal in modals.hide() w/ keyframe durat…
Browse files Browse the repository at this point in the history
…ion for smoothness ↞ [auto-sync from https://github.com/adamlui/ai-web-extensions]
  • Loading branch information
kudo-sync-bot committed Dec 20, 2024
1 parent fe427cf commit b115092
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions greasemonkey/amazongpt.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @description Adds the magic of AI to Amazon shopping
// @author KudoAI
// @namespace https://kudoai.com
// @version 2024.12.19.5
// @version 2024.12.20
// @license MIT
// @icon https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon48.png?v=0fddfc7
// @icon64 https://amazongpt.kudoai.com/assets/images/icons/amazongpt/black-gold-teal/icon64.png?v=0fddfc7
Expand Down Expand Up @@ -856,9 +856,9 @@
log.debug(`Dismissing div#${modal?.id}...`)
const modalContainer = modal?.parentNode
if (!modalContainer) return
modalContainer.style.animation = 'modal-zoom-fade-out .135s ease-out'
modalContainer.style.animation = 'modal-zoom-fade-out 0.135s ease-out'
setTimeout(() => { modalContainer.remove() ; log.debug(`Success! div#${modal?.id} dismissed`)
}, 105) // delay for fade-out
}, 135) // delay for fade-out
},

handlers: {
Expand Down

0 comments on commit b115092

Please sign in to comment.