Comments (4)
Discovery: As long as all other options are removed, then it seems to work as expected. But as soon as new parameters are added, it doesn't respect the breakDelay property:
To test it out, comment out any of these lines and you'll see the difference:
$('.translation').typeIt({
strings: ['hi', 'hello', 'bonjour'],
breakDelay: 4000,
cursor: false,
// loop: true,
// deleteSpeed: 200,
// speed: 200,
// lifeLike: true,
// breakLines: false
});
from typeit.
Hi, @shahzeb1 --
Thanks for asking about this! The breakDelay
option is only valid if breakLines
is set to true. If you'd like to set a pause between typing each string, right now, the only option is the use the companion functions provided in the plugin -- tiPause()
, which requires a little bit different setup, something like this:
$('.translation').typeIt()
.tiType('hi')
.tiPause(4000)
.tiDelete()
.tiType('hello')
.tiPause(4000)
.tiDelete()
.tiType('bonjour');
Sorry about the confusion -- the documentation isn't clear and it isn't the cleanest option. Will definitely note this for a future version.
Alex
from typeit.
Thank you.
from typeit.
Hi, @shahzeb1 -- Letting you know there's a new release out that resolves this issue by introducing a 'deleteDelay' option. Your feedback on this has been greatly appreciated.
Thanks for using TypeIt! If you don't mind staring and/or sharing the project, I'd really appreciate it!
from typeit.
Related Issues (20)
- Angular - Cannot find type definition file for 'web-animations-js'. HOT 2
- Solution: Emojis have a extra character and then disappear #208
- Module parse failed HOT 1
- Warning showing as console Error on latest Next/React. HOT 2
- Delay between strings is inconsistent/gets longer
- Cursor style problem: can not override ```--ti-cursor-font-size``` css variable
- Delete between strings with React HOT 2
- Problem with duplicate set of first element of array of strings
- React Error.
- Using `getBeforeInit` throws React TypeError: getBeforeInit is not a function. HOT 1
- .destroy() method in shortcode
- Force queue to finish all at once? HOT 1
- Doesn't type on mobile HOT 2
- Document is not defined - Angular 17 HOT 6
- Type Doesn't Match Docs
- Fadein effect
- `Element` prop not working on typeit-react HOT 1
- Add more examples
- Spaces causing temporary line break
- Any way to dry up chained methods?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typeit.