🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsHeader and Footer not showing in Excel(14.09.2026 um 22:43 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsKB5129194 Windows 11 26H1 Out of Band Update - Deskmodder.de(14.09.2026 um 19:25 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsHeader and Footer not showing in Excel(14.09.2026 um 22:43 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsKB5129194 Windows 11 26H1 Out of Band Update - Deskmodder.de(14.09.2026 um 19:25 Uhr)

🔧 Programmierung 🕛 vor 2 Jahren 3 Min Lesezeit
0

Tool Breakdown : Show/Hide Timer!

↗ Quelle (dev.to)
🗣️ Stimme:

The Show/Hide Timer is a simple but powerful tool that lets us stage elements in a way that can tell a story. It's a surprisingly sophisticated tool that pops anything within the gif canvas in and out of existence whenever a timer expires. Under the hood there is actually a lot going on:



the modalCount property tells us how many jsPlumb instances are available for the gif canvas and we set them to manage all of our timers here.




CODE
window.modalCount = window.modalCount || 0; // Initialize a counter for modal instances

if (typeof window.jsPlumbInstances === 'undefined') {
window.jsPlumbInstances = new Map();
}

if (!window.jsPlumbInstances.has('showhide')) {
window.jsPlumbInstances.set('showhide', new Map());
}






The createTimerWidgetModal function is where the magic begins:




CODE
function createTimerWidgetModal() {
window.modalCount++;
const modalId = `timer-widget-modal-${window.modalCount}`;
const containerId = `timer-widget-container-${window.modalCount}`;

// Dynamically create the modal and its container
let $timerWidgetModal = $('<div>', {
id: modalId,
title: 'Show/Hide Timer'
}).appendTo('body');

let $widgetContainer = $('<div>', {
id: containerId
}).appendTo($timerWidgetModal);

// Initialize selections array for this modal and attach it
let selectionsForThisModal = [];
$timerWidgetModal.data('selections', selectionsForThisModal);

// Ensure a jsPlumb instance for this 'showhide' app type
let showhideInstances = window.jsPlumbInstances.get('showhide');
let jsPlumbInstance = jsPlumb.getInstance({ Container: $widgetContainer });
showhideInstances.set(modalId, jsPlumbInstance);

// Setup the modal dialog UI and interactions
setupModalDialog($timerWidgetModal, $widgetContainer, modalId, selectionsForThisModal);
}






...the rest of the code goes on to setup a modal dialog with selections for the modal. As you can see selectionsForThisModal is empty at first. Once a selection is added to a modal, a jsPlumb connection is attached and a selection is added to the array. The modal is capable of handling multiple selections at a time. When the timers are started all the selections will run in sequence one after another.






Using the tool



The Show/Hide Timer is a tool that can be added to the gif.com.ai toolbar. Once you pin it to the toolbar you can use it to hide any element in your gif canvas. Let's revisit a step by step of how to do this.



First add one or more elements to the gif canvas that you want to show or hide. Once inside the canvas click the plus button to add the Show/Hide tool to the toolbar from the tools menu.





Multiple actions can be added to create an alternating action sequence. In this case the actions alternate between showing and hiding the element after the interval selected.



Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
The Gemini desktop app is now available for Windows
1 Quelle
Header and Footer not showing in Excel
1 Quelle
Burn Out, Or Fade Away
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Tool Breakdown : Show/Hide Timer!

Thematisch verwandte Begriffe: Tool, Breakdown, ShowHide, Timer · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...