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
  • Add a text block in Webflow with a unique ID like typewriter-text.
  • Include the Typed.js CDN in the <head> and initialize the typing animation in the <body> custom code.
  • Publish your site to see the animated typing effect.
  • Alternatively, embed a Lottie animation for a faster, less flexible implementation.

You can create a typewriter-style text animation in Webflow that simulates text being deleted and retyped, but it requires a combination of custom JavaScript and Webflow text elements, as Webflow doesn’t support this animation natively.

1. Use Plain Text in a Webflow Element

  • Add a Text Block (e.g., Paragraph or Heading) to your Webflow project.
  • Give it a unique class or ID like typewriter-text so you can target it.

2. Insert Custom JavaScript for Typing Animation

  • Go to Page Settings or your Project Settings → Custom Code, and paste the JavaScript just before the closing </body> tag.
  • Use a custom script that types and deletes text dynamically. One popular lightweight script is Typed.js, or you can use vanilla JavaScript or GSAP.

Example using Typed.js:

  • Add this CDN link in your tag:
    https://cdn.jsdelivr.net/npm/typed.js@2.0.12
  • Then, in the custom code, initialize it:
<script>  var typed = new Typed('#typewriter-text', {    strings: ['Hello world!', 'Welcome to my site!', 'Enjoy your stay.'],    typeSpeed: 50,    backSpeed: 30,    loop: true  });</script>
  • Replace 'Hello world!' etc. with your desired phrases.

3. Publish Your Webflow Site

  • Publish your site to test the animation live.
  • The animation will start automatically and loop through the texts with deletion and typing effects.

4. Alternative: Use Lottie Animation

  • If you want a pre-made animation, you can import a Lottie JSON file with this typing effect.
  • Go to LottieFiles.com, search for “typewriter” or “typing text,” and embed the animation using the Lottie element in Webflow.
  • This method is limited in flexibility but quick to implement.

Summary

While Webflow doesn’t offer native tools for true typewriter-style delete and retype animations, you can create this effect using a Text Block + Typed.js script or a Lottie animation. Typed.js offers more flexibility and dynamic behavior.

Rate this answer

Other Webflow Questions