Jump to content
Search Community

Ayaf Noneym

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by Ayaf Noneym

  1. I have an unordered list of items, I am also appending more items in the respective list dynamically. As you can see in the below example that the drag only working on click (because I made it to do so). Is there any way to use event delegation without adding eventListener.

     

    Note - I am using event delegation because I am dynamically appending elements in the list. 

    See the Pen LYeyYVv by NikalLawde (@NikalLawde) on CodePen

  2. I got the bounce effect as I wanted. But there is something more I want to know, How can I trigger an animation only if we leave drag from a certain directions i.e I have an animation I want it to occur only if I left dragging from left direction.

    See the Pen PoOeYba by NikalLawde (@NikalLawde) on CodePen

     

    As you can see above the animation is occuring both time even I leave the drag from right direction or left direction.

×
×
  • Create New...