Webflow sync, pageviews & more.
NEW

Is it possible to create a text animation on Webflow, where the text appears to be deleted and written again, like in the example given?

TL;DR
  • Embed a JavaScript typewriter library like Typed.js using a Webflow Embed element.
  • Link the script in Page Settings, initialize it by targeting a text element with a unique ID or class, and customize the animation parameters (e.g., typeSpeed, backSpeed, loop).

Yes, you can create a text animation in Webflow that mimics a typewriter effect where the text is deleted and typed again. To accomplish this, you'll need to use a combination of Webflow interactions and a lightweight script.

1. Use a Custom Code Embed for Typewriter Effect

  • Webflow’s native interactions don’t support character-by-character typing or deletion.
  • Add an Embed element where you want the animated text to appear.
  • Use a small JavaScript library like TypeIt, Typed.js, or similar. These libraries animate text in a typewriter style, including deletion and re-typing.

2. Include Typed.js or TypeIt in Your Project

  • Go to Page Settings and paste the script CDN link inside the Before tag section.
  • Example for Typed.js (load from CDN):
    <script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.12"></script>

3. Initialize the Typed Effect

  • In the same embed element, target the class or ID of the text element.
  • For example, wrap your text in a <span id="typed-text"></span>, then use:
    <script>new Typed('#typed-text', { strings: ["Text One", "Text Two"], typeSpeed: 50, backSpeed: 40, loop: true });</script>

4. Style the Text in Webflow

  • Use Webflow’s Typography settings to style the text element however you want.
  • Ensure the element has a unique ID or class so the script can target it correctly.

5. Test Responsiveness and Performance

  • Typewriter scripts are lightweight, but always test on mobile to confirm the animation looks good and doesn’t affect page speed or layout.

Summary

You can create a delete-and-retype text animation in Webflow using a third-party script like Typed.js or TypeIt. Native Webflow interactions don't support this effect directly, but embedding minimal custom code provides precise control and animation behavior.

Rate this answer

Other Webflow Questions