Jump to content


Dragging multiple clickable and non-clickable elements

Moderator Tag

Recommended Posts



I was wondering if there's a best practice for dragging multiple elements at the same time. Some will have anchor links, some won't.


I made a basic demo of the idea, using the container as the draggable element. Seems to work alright, but wasn't sure if there's a better way( classes maybe).



See the Pen ExeRWBo by akudlac (@akudlac) on CodePen

Link to comment
Share on other sites

Sure, that seems like a very logical way to do it. There are other ways, of course, but I wouldn't say they're any "better" if this container approach works for your use case. Is there a problem you're having with the container approach? 

  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...

No problem. It works surprisingly well. I was just curious if there was a recommended approach.



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.