Javascript/jquery drag, drop and resize

For a while now I’ve had a little side project bubbling around here at kc web design. I love weather. I love weather apps. So I’ve been creating my own weather app with some pretty unique features (all top secret!). I’ve had a number of proof-of-concept builds lying around that have utilised the Jquery UI script to deal with dragging, dropping and resizing but we’ve hacked it around so much to get it to do what we needed that its become a little unworkable. We did contemplate writing our own drag, drop & resize script but for a working prrof-of-concept the investment was a little high.

After hitting a nice patch of quiet time at kc web design kent I decided to revisit the old concepts and re-evaluate where we’d got to. The conclusion was that Jquery UI was to large and buggy to work for the job we needed and so I decided to go back to the drawing board. Making the decision to dismiss weeks of previous work is a hard one to make but when something just isn’t working you have to be bold. Hopefully the rethink and new direction will make the final product a lot better and it will actually save time in the long run.

After a lot of time Googling around it became apparent that there aren’t many light weight drag/drop/resize libraries around that would be suitable for what we needed and I was about to give up and start writing one of my own when I randomly came across interactJS.

InteractJS – Drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE8+)

It sounded perfect, was very light and had a few nice extras included…but would it work for our very specific needs? We’re not scared of a bit of hacking around and experimenting here at kc web design so we quickly got together some rough designs and through in some test code and it worked…but then it didn’t…and it wasn’t doing what we thought it might do. So with a little help from the developer we got a bit further, then added our bespoke functions and extra bits and eventually we had a working prototype again that was far, far better than the original that we’d scraped.

So the moral of this story is – never be scared to throw things away and start again from scratch. Never be so precious of your work that you cannot or will not see its failings. Learning when to erase and undo will help you move forward quicker.

And also have a look at interact.js. It is a very good drag/drop/resize script.

 

Paul Ledbrook

If you have a new project or existing website that needs improvement, email us or call 0845 3631162 , we’d love to hear from you.

What’s new?

Dark Mode vs. Light Mode: A Comprehensive Guide for UI design

In recent years, the topic of dark mode vs. light mode in UI design has sparked heated discussions and debates among designers and users alike. While some argue for the sleekness and modernity of dark mode, others swear by the clarity and simplicity of light mode. But which one is truly better for user experience...

This is What a UI Designer Can Learn from Urban Planning: A Comprehensive Guide

When it comes to design, there are many areas that can influence and inspire new ideas. One of these areas is urban planning. While the two may seem vastly different, there are actually many valuable lessons that a UI designer can learn from the world of urban planning. Good design is subjective, contextual, and intentional....

Why Intuitive Technology Is the Future of UI Design

If you’ve ever used a piece of technology that seamlessly integrated into your daily routine, then you know what it means to experience great user experience (UX) and UI design. The founder of StreamAlive, a leading tech company, believes that good technology shouldn’t feel like technology at all. It should simply feel like a natural...

Latest Inspiring Web Design Trends And Techniques For 2024

The web design landscape for 2024 is set to be a dynamic and revolutionary one, with a blend of evolutionary and reactionary trends. From sci-fi-inspired design to adaptive headers and teleprompter typography, the upcoming year will witness a diverse range of innovative approaches. Additionally, bold and experimental typography, dark mode design, 3D elements, virtual reality...

The Unrivaled Excellence of our Web Design Agency Canterbury

Unveiling the Best Web Design Agency Canterbury In the bustling digital landscape, where every business vies for online supremacy, only a select few ascend to the zenith. Canterbury, a city steeped in history, is also home to unrivaled web design excellence. A top-rated web design agency Canterbury, kc web design Ltd, has been a beacon...

10 Things to Consider When Designing a High-Converting web app UI design

Your web app’s user interface (UI) is the first thing that users will see and interact with, so it’s important to make a good impression. A well-designed web app UI design can help you attract and retain users, and even increase conversions. Here are 10 things to consider when designing a high-converting web app UI...

How to Use Web Design to Improve User Experience

Introduction Your website is your online storefront. It’s the first impression that potential customers will have of your business, so it’s important to make sure it’s designed in a way that is user-friendly and easy to navigate. Good web design can help you improve your user experience (UX) in a number of ways. It can...

We’ve been featured on The Best Music Website Designs by DesignRush

A huge thank you to the guys at DesignRush for featuring the website design work we did with Go To Hear on their ‘Best Music Website Designs’ feature. Head over to the Best Design Trends page now to see our designs along with all the other fantastic music website designs. If you want to read...

SEO for web design – How to Optimise Your Website for Search Engines

Search engine optimisation SEO for web design is crucial for any business with an online presence. Optimising your website for search engines can increase its visibility, drive more traffic, and boost conversions. Follow these tips to make your website more discoverable and rank higher in search results: Choose the Right Keywords for SEO for web...

kc web design ltd