Live data from Hacker News

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

ichub.github.io

11–12 of 12 posts

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

#11
post #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.

Is that standardized? So why doesn't all those libraries (mostly jQuery libraries) that perform DOM transformation use custom elements, instead of a lot of nested divs with custom classes?

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

#12
post #11
post #9

Earlier quoted context omitted.

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.

Is that standardized? So why doesn't all those libraries (mostly jQuery libraries) that perform DOM transformation use custom elements, instead of a lot of nested divs with custom classes?

Honestly, I'm not sure. If it was really an issue, it'd be trivial to change the script to render things as nested divs and spans. The appeal of custom elements, at least to me, is that it makes everything more concise and readable. I prefer reading whatever to whatever.
Post reply on HN