Giter VIP home page Giter VIP logo

Comments (4)

cirquit avatar cirquit commented on July 20, 2024

I'd be open to implement it myself and open a pull request if you can point me to the right direction - if this is also something you might want to provide as an additional feature.

from typewriterjs.

tameemsafi avatar tameemsafi commented on July 20, 2024

You can have some text before the container element that you use, this way it will always be visible.

HTML:

<div><span>TEXT HERE: </span><span id="typewriter-container"></span></div>

JS:

new Typewriter('#typewriter-container', {
  strings: ['Hello', 'World'],
  autoStart: true,
});

from typewriterjs.

cirquit avatar cirquit commented on July 20, 2024

I think you misunderstood my problem. I'd like the same effect as the site I posted - at the initial load the text area is blank, then some text appears, for example "Alex says hello world!". In the next step, everything gets deleted besides "Alex", so that word stays there and the next animation would start from that word onward by adding e.g "says goodbye".

What is shown in steps:

  1. "" (on load)
  2. "Alex says hello world" (after finishing first animation)
  3. "Alex" (after deleting up everything up to Alex)
  4. "Alex says goodbye" (finishing the second animation)

from typewriterjs.

tameemsafi avatar tameemsafi commented on July 20, 2024

@cirquit Please see the jsfiddle example link below to achieve the effect you have described

https://jsfiddle.net/mpx94c8j/2/

from typewriterjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.