Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Windows Tipps & SecurityGrafikkarte vor Überhitzung schützen: So geht’s(25.09.2026 um 08:00 Uhr)
••••••••••
Intelligence View
⚡ tsecurity.de Intelligence

Making a text-shadow wave animation design tool in only 30 lines of pure HTML web component code + 1 extra file (no node or JS!)

In my previous tutorials, I showed how to use the single-file Modulo.js to make a gradient picker component in 13 lines, quickly embed APIs, or even how to build a full CMS-powered site with Modulo. Today, we'll go with a fun and flashy…

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

In my previous tutorials, I showed how to use the single-file Modulo.js to make a gradient picker component in 13 lines, quickly embed APIs, or even how to build a full CMS-powered site with Modulo. Today, we'll go with a fun and flashy example: A animated "Word Art" tool for making a "shadow wave" animation effect in text.






The final result



Today, we'll learn how to create a text shadow "ripple" animation where each character gets its own animation delay, causing the "wave" effect you see captured below:



Image showing design tool with text input and speed input and the words Fun With Modulo.js with a rippling or wave font shadow naimmation



Try it out now, in less than 30 seconds: 🚀🚀🚀 Want to skip ahead? Scroll to the end and copy the ~30 lines of HTML code into any local HTML file, and then open it in your browser. Modulo has no dependencies and even runs embedded in local HTML files, so it's really that easy!









Template, State, and Style CParts



Let's start with an H1 tag, an input bound to text, and a Style CPart to style it with a (non-waving) animation:




<Template>
<label>Text <input [state.bind] name="text" /> </label>
<h1 style="animation: 3000ms ShadowAnimation 1000ms infinite alternate;">
{{ state.text }}
</h1>
</Template>
<State
text="Fun with Modulo.js!"
></State>
<Style>
h1 {
color: #1A5FB4;
font-size: 40px;
text-shadow: -3px -3px 1px #99C1F188, 3px 3px 1px #1A5FB488;
}
@keyframes ShadowAnimation {
from { text-shadow: -3px -3px 1px #99C1F188, 3px 3px 1px #1A5FB488; }
to { text-shadow: -7px -10px 5px #99C1F188, 7px 10px 5px #1A5FB488; }
}
</Style>






In this example, we create a <input> element that's bound to state using [state.bind]. This means the "text" variable in state will be reflected on the page, and can be edited within the input. We also use a <Style> CPart to give the H1 some styling: We give the h1 a colorful text shadow, and define ShadowAnimation keyframes that slides the text shadows up and down. In the <h1> element, we use style= to activate the ShadowAnimation, hard-coding 3000ms (3 seconds) as the delay time between repeating.



Make sense? If not, and state and binding is confusing you, consider warming up with this tutorial on creating a font design tool, or the Modulo JS - Ramping Up Part 2: State. If @keyframes are confusing you, check out MDN's documentation. Or, simply continue on to see if things clear up as we bind more inputs!






Making animation speed adjustable



The first tweak we'll do is add a slider to make the animation timing adjustable. To do so, we add a new state variable called speed. The syntax we will use is: speed:=30 -- note the := syntax, since we are dealing with numbers.




<State
speed:=30
text="Fun with Modulo.js!"
></State>






Then, we add an input with name="speed" and [state.bind]="input" --- the "input" event type tweak is explained in this tutorial),




<label>Speed <input [state.bind]="input" name="speed" type="range" min="1" max="30" /></label>






Finally, we use templating to insert it into the style= attribute on the H1 tag:




<h1 style="animation: {{ state.speed }}00ms ShadowAnimation 1000ms infinite alternate;">









Separating the letters into spans to style individually



The animation currently is applied to the entire H1 tag at once. To achieve a "ripple" or "wave" effect, we need to animate letters individually. To "split up" the text into letters, we can use the {% for %} template tag:




<h1 style="...">
{% for i, letter in state.text %}
<span> {{ letter }} </span>
{% endfor %}
</h1>






This is saying that we want each character (letter) and it's index (i) in the h1 tag to get it's own span tag. The for loop will duplicate code between the open the for and the endfor.



Next, we need to now move the style= animation to the span tag (deleting it from the h1 tag). Then, we need to use that i index number (the letter's index) to stagger the animations, so the delay is increasing for each

character. We do this by substituting 1000ms (hardcoded) with {{ i }}00ms (templated). This is the result:




{% for i, letter in state.text %}
<span style="animation: {{ state.speed }}00ms ShadowAnimation {{ i }}00ms infinite alternate;">
{% endfor %}






One last tweak: Our Style tag needs to now target h1 > span instead of just h1.






<x-FloatingShadowTool> - Embeddable results



Adding in that last tweak and combining everything gives this result. Keep in mind this is a pretty intense style effect, from both a visual and page-speed perspective, so use sparingly! Hope you enjoy this tutorial -- follow for more like this!




<!DOCTYPE html>
<template Modulo>
<Component name="FloatingShadowTool">
<Template>
<label>Text <input [state.bind] name="text" /> </label>
<label>Speed <input [state.bind]="input" name="speed" type="range" min="1" max="30" /></label>
<h1>
{% for i, letter in state.text %}
<span style="animation: {{ state.speed }}00ms ShadowAnimation {{ i }}00ms infinite alternate;">
{{ letter }}
</span>
{% endfor %}
</h1>
</Template>
<State
speed:=30
text="Fun with Modulo.js!"
></State>
<Style>
h1 > span {
margin: -4px;
color: #1A5FB4;
display: inline-block;
font-size: 40px;
text-shadow: -3px -3px 1px #99C1F188, 3px 3px 1px #1A5FB488;
}
@keyframes ShadowAnimation {
from { text-shadow: -3px -3px 1px #99C1F188, 3px 3px 1px #1A5FB488; }
to { text-shadow: -7px -10px 5px #99C1F188, 7px 10px 5px #1A5FB488; }
}
</Style>
</Component>
</template>
<script src="https://unpkg.com/mdu.js"></script>
<x-FloatingShadowTool></x-FloatingShadowTool>


1. Sofort-Triage & Abwehrmaßnahmen

SOC Incident Playbook: Vulnerability Remediation & Verification
Syntax validiert (0 Fehler)
title: Detect Exploitation - Making a text-shadow wave animation design tool in only 30 lines of pure HTML web component code + 1 extra file (no node or JS!)
id: 68cc025f-bfca-4b56-b324-b44fffd7f0d9
status: experimental
description: Automatisch generierte SIEM-Erkennungsregel basierend auf CTI Intelligence
references:
  - https://tsecurity.de/
author: iShareStuff CTI Automated Detection Engine
date: 2026-09-27
logsource:
  category: network_connection
  product: any
detection:
  selection:
      CommandLine|contains:
        - 'exploit'
  condition: selection
falsepositives:
  - Legitime administrative Zugriffe oder Penetrationstests
level: high
tags:
  - attack.initial_access
Syntax validiert (0 Fehler)
rule CTI_Threat_Indicator {
    meta:
        author = "iShareStuff CTI Automated Detection Engine"
        date = "2026-09-27"
        description = "YARA Signature for "
    strings:
        $str = "Making a text-shadow wave anim" ascii wide
    condition:
        any of them
}
Syntax validiert (0 Fehler)
index=security sourcetype IN ("cisco:asa", "pan:traffic", "zeek_conn", "suricata", "WinEventLog:Security")
("Making a text-shadow wave animation desi")
| stats count earliest(_time) as first_seen latest(_time) as last_seen by src_ip, dest_ip, dest_host, signature
| eval first_seen=strftime(first_seen, "%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen, "%Y-%m-%d %H:%M:%S")
| sort - count
Syntax validiert (0 Fehler)
message: "*Making a text-shadow wave animation desi*"
Syntax validiert (0 Fehler)
CommonSecurityLog
| where Message has "Making a text-shadow wave animation desi"
| summarize EventCount = count(), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by SourceIP, DestinationIP, DestinationPort, Activity
| extend DetectionRule = "iShareStuff-CTI-Compiled"
| sort by EventCount desc

2. Cyber Threat Intelligence & Forensik

CTI Threat Relationship Graph2 Knoten / 1 Relationen
CVE / Incident Software MITRE ATT&CK CWE Weakness IoC
🎯
MITRE ATT&CK Matrix Navigator 14 Taktiken
Reconnaissance
-
Resource Development
-
Initial Access
Execution
Persistence
-
Privilege Escalation
Defense Evasion
Credential Access
-
Discovery
-
Lateral Movement
-
Collection
-
Command and Control
Exfiltration
-
Impact
tsecurity.de Cognitive Threat RAG
Fokus-Vektor:

Analyse für identifizierte Bedrohung auf Basis von Live-CTI (ENISA EUVD): CVSS 0.0 · EPSS 0.0% · CISA KEV: nein. Handlungsableitung aus den verlinkten Hersteller-Quellen.

🛡️ Angriffsfläche & Exposure

Netzwerk/Remote-Zugriff ohne Vorauthentifizierung möglich.

⚡ Empfohlene Sofortmaßnahmen
  • 1. Perimeter-Inspektion: Relevante Portfreigaben und exponierte Endpunkte unverzüglich scannen.
  • 2. Patch-Applikation: Hersteller-Hotfix einspielen oder betroffene Daemons in isolierte DMZ-Segmente überführen.
  • 3. Telemetrie & EDR-Alerts: Prozessaufrufe und Child-Processes auf anomale Shell-Spawns überwachen.
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Making a text-shadow wave animation design tool in only 30 lines of pure HTML web component code + 1 extra file (no node or JS!)

Thematisch verwandte Begriffe: Making, textshadow, wave, animation · 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 ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-100620 | Capgo CLI (npm package @capgo/cli) through 7.98.2 is affected by an ove…
Advisory →
tsecurity.de Icon
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