mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 10:29:54 +02:00
Punchier shimmer animation
This commit is contained in:
parent
759829585f
commit
edfc366061
2 changed files with 7 additions and 8 deletions
|
|
@ -103,14 +103,10 @@ export default class DhCountdowns extends HandlebarsApplicationMixin(Application
|
|||
|
||||
this.countdownChangeAnimationTimeout = setTimeout(() => {
|
||||
this.changedCountdownsForAnimation.clear();
|
||||
for (const element of this.element.querySelectorAll('.countdown-container')) {
|
||||
const selector = '.countdown-container, .header-type-toggles .header-type';
|
||||
for (const element of this.element.querySelectorAll(selector)) {
|
||||
element.classList.remove('change-glow');
|
||||
}
|
||||
|
||||
for (const element of this.element.querySelectorAll('.header-type-toggles .header-type')) {
|
||||
element.classList.remove('change-glow');
|
||||
}
|
||||
|
||||
}, 3000);
|
||||
|
||||
/* If the countdown is not currently visible, add a glow to the CountdownType pill */
|
||||
|
|
@ -123,7 +119,7 @@ export default class DhCountdowns extends HandlebarsApplicationMixin(Application
|
|||
.classList.add('change-glow');
|
||||
}
|
||||
|
||||
/* If the countdown element is not rendered the user doesn't have permissiosn to it. No animation needed on the elment itself */
|
||||
/* If the countdown element is not rendered the user doesn't have permissions to it. No animation needed on the elment itself */
|
||||
const countdownElement = this.element.querySelector(`.countdown-container[data-countdown="${countdownKey}"]`);
|
||||
if (!countdownElement) continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue