Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

50Projects-HTML-CSS-JavaScript : Drag and Drop App #54

Merged
merged 2 commits into from
Dec 25, 2024
Merged

Conversation

tajulafreen
Copy link
Owner

Title: Add Drag and Drop Functionality for Task Lists

Description:

This PR adds a drag-and-drop feature to a simple task list application, where users can move items between two lists. The drag-and-drop functionality is implemented using the native HTML5 Drag and Drop API, and the application is styled using CSS for better user interaction.

Changes Made:

  • Created two task lists with draggable items inside each list.
  • Included basic structure for task list containers.
  • Styled the task lists with Flexbox layout to display side-by-side.
  • Added hover and dragging effects on list items for better visual feedback.
  • Styled lists with a dashed border when an item is dragged over them.
  • Implemented the drag-and-drop functionality using event listeners (dragstart, dragend, dragover, dragenter, dragleave, drop).
  • Added a class (dragging) to items while they are being dragged.
  • Allowed items to be dropped into a different list, updating the UI accordingly.

Features:

  • Users can drag items from one list to another.
  • Items are visually represented with a background change on hover and a dashed border when a valid drop target is hovered.
  • Simple, interactive task list with smooth drag-and-drop behavior.

@tajulafreen tajulafreen merged commit 59c14c5 into main Dec 25, 2024
5 checks passed
@tajulafreen tajulafreen deleted the Drag_and_Drop branch December 25, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant