| 开发者 | jupa8 |
|---|---|
| 更新时间 | 2026年9月19日 23:21 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
onComplete callback: run a custom JavaScript function (window.typed.onComplete.yourFunctionName) once the animation finishes.window.typed.onComplete.yourFunctionName in your theme or plugin JavaScript to run code when the animation finishes./wp-content/plugins/jupa-typed-text directory, or install the plugin through the WordPress plugins screen directly.Yes. Each line is a standard paragraph block, so bold, italic, links, and other inline formatting work normally.
In the block sidebar, under "Callbacks > On complete", type a function name (for example myCallback). Then, in your theme or plugin JavaScript, define that function on window.typed.onComplete before the block's script runs:
window.typed = window.typed || {}; window.typed.onComplete = window.typed.onComplete || {}; window.typed.onComplete.myCallback = function () { // Runs once the typing animation finishes. };
If loop is enabled, the callback runs every time the animation completes a cycle, not just once.
Nothing extra happens; the animation just finishes and, if looping is enabled, starts again.
Yes, it's a standard block with apiVersion: 3 and works anywhere blocks are supported.