Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Keep chars from previous string #41

Open
jsenecal opened this issue May 27, 2017 · 2 comments
Open

Feature: Keep chars from previous string #41

jsenecal opened this issue May 27, 2017 · 2 comments

Comments

@jsenecal
Copy link

It would be nice to have a feature that would work in conjunction with breakLines: false where the script would only delete the last chars that are different from the previous string.

Example:

$('.type-it').typeIt({
    strings: ['I am a Jedi', 'I am Obi wan Kenobi'],
    breakLines: false,
    keepChars: true //suggested setting
});

Would first output "I am a Jedi" then delete only "a Jedi" then type "Obi wan Kenobi"

@alexmacarthur
Copy link
Owner

Hm... I'm open to this idea. Will consider in future release!

@sreuter
Copy link

sreuter commented Apr 3, 2023

It would be awesome if it could also leave the characters at the end of a string when only the starting characters change...

E.g. ["Onboard employees", "Offboard Employees", "Reward Employees"].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants