Giter Club home page Giter Club logo

Comments (5)

Forz70043 avatar Forz70043 commented on June 9, 2024

can you post all code ?

from typewriterjs.

Airo1011 avatar Airo1011 commented on June 9, 2024
Js File
var app = document.getElementById('brand');

var typewriter = new Typewriter(app, {
    loop: true
});

typewriter.typeString('My name is <br> Aditya Modi')
    .pauseFor(2000)
    .deleteAll()
    .typeString('and this is <br> my Portfolio')
    .pauseFor(2000)
    .deleteAll()
    .typeString("so welcome to")
    .pauseFor(2000)
    .deleteAll()
    .typeString("Aditya Modi")
    .pauseFor(2000)
    .deleteChars(3)
    .typeString(".")
    .start()

Html
<section id= brand-background>
            <h1 id=brand>Aditya M.</h1>
</section>

from typewriterjs.

jesussuarz avatar jesussuarz commented on June 9, 2024

Hi, I had a good time trying to look because it didn't work for me either.

you must first place the library and then the javascript code.

from typewriterjs.

Airo1011 avatar Airo1011 commented on June 9, 2024
</body>
<script src="js/core.js"></script>
<script src="js/script.js"></script>
</html>

Is this what you are talking about? Core.js is the Typewrite Library, Script.js is where I place the Javascript above. (This is placed at the end of my HTML document)

from typewriterjs.

tameemsafi avatar tameemsafi commented on June 9, 2024

@Airo1011 I have taken a look and the code you posted above works fine. Are you using the latest version?

JSFiddle of the code you posted above
https://jsfiddle.net/0edm5nL1/

from typewriterjs.

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.