Live data from Hacker News

Show HN: Tply – a simple typewriter effect for your websites

ichub.github.io

1–10 of 12 posts

Re: Show HN: Tply – a simple typewriter effect for your websites

#4

Is it possible to type the sentence, then delete the last words and retype different words? Also show the blinking caret/cursor when typing or deleting characters. I.e. something like here: https://www.particle.io/

Yes, you can delete previously typed sentences, see example #3 on the site: use a element.

If you want a caret, there's two options: * put your tply source into a span, then after the span create and style your own caret. * contribute to the repo and add an easier way to have a caret (:

Re: Show HN: Tply – a simple typewriter effect for your websites

#9
post #6

How do you do these special HTML elements?

If you're wondering about how you would go about using this in your own website, check out the documentation in the github repo here: https://github.com/ichub/tply

If you're wondering how these actually work, browsers just interpret the custom elements as unstyled inline elements, basically as `span`s, which I am free to do with as I wish.

Post reply on HN