How to make the Chart.js animate when scrolled to that section?

前端 未结 5 963
挽巷
挽巷 2020-12-10 05:28

I am trying to use the pie chart from Chart.js (http://www.chartjs.org/docs/#pieChart-exampleUsage). Everything works smooth, but the animation happens as soon as the page l

5条回答
  •  生来不讨喜
    2020-12-10 06:06

    This is what you want:

    Check if element is visible after scrolling

    Next time please check if there's already an answer ;)

    Alternatively: jquery.appear

提交回复
热议问题