I have a bar chart that animates with CSS3 and the animation currently activates as the page loads.
The problem I have is that the given bar chart is placed off screen due to lots of content before it so by the time a user scrolls down to it, the animation has already finished.
I was looking for ways either through CSS3 or jQuery to only activate the CSS3 animation on the bar chart when the viewer sees the chart.
<div>lots of content here, it fills the height of the screen and then some</div>
<div>animating bar chat here</div>
If you scroll down really fast right after page load, you can see it animating.
Here is a jsfiddle of my code. Also, I dont know if this matters, but I have several instances of this bar chart on the page.
I have come across a jQuery plug-in called waypoint but I had absolutely no luck getting it to work.
If someone could point me in the right direction, it would be really helpful.
Thanks!
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…