typewriterjs
typewriterjs copied to clipboard
Allow change cursor position
I am not going to create a pull request for this branch as the code is not in top shape but the overall idea is in my fork and could work as an inspiration
https://github.com/KilianB/typewriterjs/tree/cursorPosition
5.12.2021 2.20.0
-
add a more natural delay for typing (e.g. duplicated letters have a shorter delay. a space has a longer delay range)
-
make node argument for pasteString optional
-
add the ability to change cursor position in the text
-
text can be inserted pasted and removed from the cursor position
- (this changes dom layout and css so it might be a breaking change)
- additionally some linear search is introduced which might slow down performance due to legacy reason
-
pasteString now adds the characters one by one allowing for individual deletion
-
elements will now be deleted on a character by character basis and not based on child elements
- removeAll will now delete elements equally fast. To clear elements take a look at the
clearmethod
- removeAll will now delete elements equally fast. To clear elements take a look at the
-
add pauseFor to Types
-
Avoid Google cloud translation to change text while typewrite
2.12.2021 2.19.0
#132
- add clear functionality to remove text instantly without animation
- allow a deleteDelay of 0 for deleteCharacter
- check the type of speed in deleteAll instead of if it is truthy. This will allow the user to specify a potential delay of 0
- Bump dependencies
-typo fixes
Merged: https://github.com/tameemsafi/typewriterjs/pull/131 & https://github.com/tameemsafi/typewriterjs/pull/128
Hey, @KilianB, I just wanted to thank you for your work on your fork ❤️. Sadly, no one has paid attention to this PR, but you at least made an impact in someone's life, me. Thanks again.
I used your work on https://www.getfullanalytics.com.