Jump to content
Search Community

I'd like this animation to run once on each item

stancillous test
Moderator Tag

Recommended Posts

Hey guys. quick question

I have a span which when clicked will call a function that will create a div and append it to the body

i also have an animation for the created div but I want it to apply only once  when a div is created, unlike what is happening. Every time i click the span, the animation applies to the new created div as well as the other present divs.

 

can anyone kindly help :)

See the Pen KKQLRyM by stanceray (@stanceray) on CodePen

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...