Share Posted April 3, 2016 I have to move the small circie on the path. the circle emits animated flying circle when continuous clicked. I want to When I continuous click the button,the every circle would complete the animation one by one. But,in my code,when I continuous click the button,the circle's animation will stop. I did not want results. Please find the code on codepen Thanks. See the Pen dMVgdP by janily (@janily) on CodePen Link to comment Share on other sites More sharing options...
Share Posted April 3, 2016 Don't use innerHTML as that destroys everything and creates new elements. Use insertAdjacentHTML instead. It's also a lot faster! See the Pen GZMwMQ?editors=0010 by osublake (@osublake) on CodePen 6 Link to comment Share on other sites More sharing options...
Share Posted April 3, 2016 Hi janily in addition to Blake's advise , i think this Demo can help you too : See the Pen bpoQLQ by MAW (@MAW) on CodePen 6 Link to comment Share on other sites More sharing options...
Author Share Posted April 3, 2016 Don't use innerHTML as that destroys everything and creates new elements. Use insertAdjacentHTML instead. It's also a lot faster! See the Pen GZMwMQ?editors=0010 by osublake (@osublake) on CodePen thank you Blake. Link to comment Share on other sites More sharing options...
Author Share Posted April 3, 2016 Hi janily in addition to Blake's advise , i think this Demo can help you too : See the Pen bpoQLQ by MAW (@MAW) on CodePen thank you,Diaco. your demo is very cool! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now