Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Web Security TippsNew manual calculation setting in Google Sheets(21.09.2026 um 20:54 Uhr)
Videos & KonferenzenTechquickie: The Steam Frame Shouldn't Work - Here's Why It Does(21.09.2026 um 21:17 Uhr)
Sichere ProgrammierungHow to Build a Production-Ready iOS App With AI-Generated Code(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungAfriex Integrations: Sandbox, Idempotency, and Webhook Simulation(21.09.2026 um 21:50 Uhr)
Sichere ProgrammierungBridging Local and Cloud Databases for Centralized Data Management(21.09.2026 um 21:51 Uhr)
Web Security TippsNew manual calculation setting in Google Sheets(21.09.2026 um 20:54 Uhr)
Videos & KonferenzenTechquickie: The Steam Frame Shouldn't Work - Here's Why It Does(21.09.2026 um 21:17 Uhr)
Sichere ProgrammierungHow to Build a Production-Ready iOS App With AI-Generated Code(21.09.2026 um 21:00 Uhr)
Sichere ProgrammierungAfriex Integrations: Sandbox, Idempotency, and Webhook Simulation(21.09.2026 um 21:50 Uhr)
Sichere ProgrammierungBridging Local and Cloud Databases for Centralized Data Management(21.09.2026 um 21:51 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Tool Breakdown : Show/Hide Timer!

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.…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

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.




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:




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.



Step 1



Select the time you want to complete the action, the action to complete - Show or Hide, and then the target of that action.



Step 2



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.



Step 3



Try out the Timer tool at https://gif.com.ai

Ä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 ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94497 | jshERP through 3.6 fails to validate object ownership in by-id info, upd…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick