Giter VIP home page Giter VIP logo

Comments (4)

shahzeb1 avatar shahzeb1 commented on August 25, 2024

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.

alexmacarthur avatar alexmacarthur commented on August 25, 2024

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.

shahzeb1 avatar shahzeb1 commented on August 25, 2024

Thank you.

from typeit.

alexmacarthur avatar alexmacarthur commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.