Forums

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
    Posts
  • #242139
    bonsai2346
    Participant

    Hi,
    I’m trying to do the animation with the scroll, using javascript, like in the page “scroll drawing”
    (https://css-tricks.com/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.

    (http://codepen.io/anon/pen/LZPmzB)

    #242143
    Shikkediel
    Participant

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

    #242158
    Senff
    Participant

    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.

    #242162
    bonsai2346
    Participant

    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.