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

How is removing letter timing is calculated? #13

Open
bohdanafanasyev opened this issue Jun 4, 2017 · 0 comments
Open

How is removing letter timing is calculated? #13

bohdanafanasyev opened this issue Jun 4, 2017 · 0 comments

Comments

@bohdanafanasyev
Copy link

bohdanafanasyev commented Jun 4, 2017

Greetings,

After inspecting the source code 2 properties have been encountered letterInerval and letterSelectInterval, I did expect that last one is responsible for controlling letter removing speed, but when I tried both rewriting the value of source code and defining on a constructor it appears that it affects both appearing and deleting the letter and letterInterval value is kind of ignored.

new Typist(typist, {
    letterInterval: 100,
    letterSelectInterval: 1000,

    onSlide: (text, options) => {
      options.letterInterval =  100
      options.letterSelectInterval = 1000
      console.log(options)
    }
  });
})

Can you please suggest what would be the proper way to control the removing speed?

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

No branches or pull requests

1 participant