Drag and Drop
How do I make an drag and drop?
Make your navigation sortable using jQuery.. What is a drag and drop? How do you make a drag and drop? This script and codes were developed by Larry Geams Parangan on 13 September 2022, Tuesday.
Drag and Drop - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Drag and Drop</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel='stylesheet prefetch' href='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Rearrange by dragging the list</h1>
<ul id="sortable"> <li class="item-1">Item 1</li> <li class="item-2">Item 2</li> <li class="item-3">Item 3</li> <li class="item-4">Item 4</li> <li class="item-5">Item 5</li>
</ul> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Drag and Drop - Script Codes CSS Codes
body{ margin: 0px; padding: 0px; background: #1abc9c; font-family: 'Lato',sans-serif;
}
h1{ color: #fff; text-align: center; margin-top: 2em;
}
ul{ list-style: none; margin-top: 2em;
}
ul li{ color: #fff; padding: 20px; width: 600px; margin: 0px auto; cursor: pointer;
}
ul li.item-1{ background: #e74c3c }
ul li.item-2{ background: #3498db }
ul li.item-3{ background: #f39c12 }
ul li.item-4{ background: #27ae60 }
ul li.item-5{ background: #9b59b6 }
.ui-sortable-placeholder{ border: 1px dotted; padding: 30px 20px;
}
/*font face*/
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 100; src: local('Lato Hairline'), local('Lato-Hairline'), url(http://themes.googleusercontent.com/static/fonts/lato/v6/boeCNmOCCh-EWFLSfVffDg.woff) format('woff');
}
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; src: local('Lato Light'), local('Lato-Light'), url(http://themes.googleusercontent.com/static/fonts/lato/v6/KT3KS9Aol4WfR6Vas8kNcg.woff) format('woff');
}
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400;
Drag and Drop - Script Codes JS Codes
$(function() { $( "#sortable" ).sortable({ placeholder: "ui-sortable-placeholder" }); });
Developer | Larry Geams Parangan |
Username | larrygeams |
Uploaded | September 13, 2022 |
Rating | 4.5 |
Size | 2,248 Kb |
Views | 28,336 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
One Page Navigation | 2,534 Kb |
Simple E-Commerce | 2,919 Kb |
Slide Toggle Navigation | 2,590 Kb |
CSS3 Loading Disk | 1,826 Kb |
The Android Story | 4,745 Kb |
Just Flat | 2,261 Kb |
See Through | 77,410 Kb |
Browser Detection - Google Chrome | 2,866 Kb |
Pure CSS Login Form | 2,343 Kb |
Pure CSS Checklist Icon | 2,121 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Chuck Norris Background | Manz | 1,967 Kb |
Zip Button test | Lje7462 | 1,932 Kb |
Video Player Custom Controls | EleftheriaBatsou | 3,665 Kb |
Add This API | ThatGuySam | 2,848 Kb |
NT Tribute | Skybutterfly | 2,850 Kb |
Slide In Panel | Vikvarg | 2,811 Kb |
Animated Logo | Shakdaniel | 2,672 Kb |
Nav Test -- cats 1 | Payls | 4,735 Kb |
Login-ng-modal | Heedoo | 3,566 Kb |
Part 19 Bootstrap split button dropdown | Venkatesha | 1,601 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!