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

Tags will not diplay #48

Closed
Airo1011 opened this issue Oct 23, 2019 · 5 comments
Closed

Tags will not diplay #48

Airo1011 opened this issue Oct 23, 2019 · 5 comments

Comments

@Airo1011
Copy link

I tried adding the
tag and it didn't work, then I tried using the strong tag and that failed. I am unsure whether its my fault or it's the code which is facing errors.

Example:
.typeString('and
this is my Portfolio')

@Forz70043
Copy link

can you post all code ?

@Airo1011
Copy link
Author

Airo1011 commented Nov 1, 2019

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>

@jesussuarz
Copy link

jesussuarz commented Nov 22, 2019

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.

@Airo1011
Copy link
Author

Airo1011 commented Nov 23, 2019

</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)

@tameemsafi
Copy link
Owner

tameemsafi commented Nov 30, 2019

@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/

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

4 participants