TextTweener

外掛說明

TextTweener is a Gutenberg block that creates smooth, animated text transitions. Individual letters morph and move to their new positions, creating an elegant text rotation effect.

Live Demo: https://realmaker.de/texttweener/ — see the animation in action before installing.

Source Code & Build Instructions:

The minified file assets/texttweener.umd.min.js is built from the TypeScript source at:
https://github.com/Realmaker/textTweener

To build from source:

  1. Clone the repository: git clone https://github.com/Realmaker/textTweener.git
  2. Install dependencies: npm install
  3. Build: npm run build

The compiled output is generated in dist/ using tsup (ESBuild-based bundler). The build configuration is in tsup.config.ts.

Features:

  • Smooth letter-by-letter animation between text phrases
  • Customizable display duration, transition speed, and stagger
  • Multiple easing presets (Smooth, Ease Out, Bounce, Linear)
  • Add as many text phrases as you need
  • Responsive and works with any WordPress theme
  • No jQuery dependency
  • No-JavaScript fallback for accessibility

Usage:

  1. Add the “TextTweener” block in the WordPress block editor
  2. Enter at least two text phrases in the block settings
  3. Customize animation settings (duration, easing, stagger) as desired
  4. Publish and watch your text animate

螢幕擷圖

  • TextTweener block in the Block Inserter (Text category).
  • Block sidebar — add as many text phrases as you like.
  • Animation controls — display duration, transition, stagger, easing, loop.
  • Appearance controls — font size.

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • TextTweener Animated text transitions — letters morph to their new positions.

安裝方式

  1. Upload the texttweener folder to /wp-content/plugins/
  2. Activate the plugin through the “Plugins” menu in WordPress
  3. Use the “TextTweener” block in the block editor

常見問題集

How many text phrases can I add?

You can add as many text phrases as you like. A minimum of two is required for the animation to work.

Does it work with any theme?

Yes, TextTweener works with any WordPress theme that supports the block editor.

Can I control the animation speed?

Yes. You can adjust the display duration (how long each text is shown), transition duration (how fast the morph animation plays), and stagger (delay between individual letter animations).

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈TextTweener〉的開發相關工作。

參與者

〈TextTweener〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈TextTweener〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.1.0

  • Improved WordPress.org compliance
  • Replaced inline scripts with wp_add_inline_script()
  • Added internationalization support (load_plugin_textdomain)
  • Updated block.json with editorScript, editorStyle, and viewScript
  • Changed license to GPL-2.0-or-later
  • Added readme.txt
  • Updated to modern script registration format
  • Replaced deprecated AlignmentToolbar with AlignmentControl

1.0.0

  • Initial release