The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript scroll drawing doesn't work on chrome

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #242139

    I’m trying to do the animation with the scroll, using javascript, like in the page “scroll drawing”
    ( but when I open the html file with Chrome, it doeasn’t work, and I’m not able to understand where is the error.. Here there is the code, that seems that works on codepen. But on chrome, it doesn’t work.



    What’s not working? I see a draw animation in Chrome myself.


    It works in Chrome (your Codepen example is proof of that), so it’s likely that when you look at it from a file on your local computer, the path(s) to Javascript file(s) is not right.

    Hard to tell when it only happens on your local, to be honest.


    Maybe is a problem with the editor that I have used, beacuse with other software it run.. thank you!
    Now I want to activate the animation with the scroll when the path is in the visible part of the screen.
    Because with this code, if the path is in the bottom of a long page, when you arrive at the end of the page, it is already completed.
    How I can do this?

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.