Draggable Basic
How do I make an draggable basic?
What is a draggable basic? How do you make a draggable basic? This script and codes were developed by Seoh Char on 14 December 2022, Wednesday.
Draggable Basic - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Draggable Basic</title>
</head>
<body> <script src='https://builds.framerjs.com/06a4df9/framer.js'></script> <script src="js/index.js"></script>
</body>
</html>
Draggable Basic - Script Codes JS Codes
(function() { var bg, dot, hor, ver; bg = new Layer({ width: 320, height: 569, backgroundColor: '#eee' }); hor = new Layer({ width: 200, height: 50, backgroundColor: 'blue', superLayer: bg }); ver = new Layer({ width: 50, height: 200, backgroundColor: 'red', superLayer: bg }); hor.centerX(); ver.centerY(); ver.draggable.enabled = hor.draggable.enabled = true; ver.draggable.speedX = hor.draggable.speedY = 0; ver.draggable.maxDragFrame = { y: 0, height: 569 }; hor.draggable.maxDragFrame = { x: 0, width: 320 }; dot = new Layer({ width: 50, height: 50, backgroundColor: 'black', superLayer: bg }); dot.center(); dot.draggable.enabled = true; dot.draggable.maxDragFrame = bg.frame;
}).call(this);
Developer | Seoh Char |
Username | seoh |
Uploaded | December 14, 2022 |
Rating | 3 |
Size | 2,009 Kb |
Views | 16,192 |
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 |
Constant-time Queue using Stack | 2,175 Kb |
JSON string to Form string | 2,526 Kb |
Video Capture | 2,691 Kb |
Coverflow | 3,516 Kb |
Trick of One way direction | 1,977 Kb |
Switch states with different options | 1,870 Kb |
SubLayer event bubbling | 1,913 Kb |
A Pen by Seoh Char | 5,325 Kb |
Floating point issue in Framer | 2,038 Kb |
Generative Gradient Layers | 5,192 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 |
Main page display | BarryKe | 4,562 Kb |
Simple animated hover effect | Pobee-norris | 3,044 Kb |
CSS3 Media Queries demo | Machal | 1,824 Kb |
Heatmap Color Scales | Stevepepple | 2,331 Kb |
Sencha Touch 2.3.1 Basic Grid Example | Trozdol | 2,770 Kb |
P5.js data visualization | Enginarslan | 2,233 Kb |
Sassy Buttons | Elyseholladay | 2,299 Kb |
Rotate Demo | Agelber | 3,061 Kb |
Two Element Typeface | Chrisota | 4,942 Kb |
Import shader in three.js | Khangeldy | 2,636 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!