Note: This tutorial builds off of previous code that can be found here.
The repository for this project can be found on Github.
Now that we have a div that can be dragged around, let’s build in the elements to resize it. We want the div to be resizable on all sides, as well as each corner. To do that, we introduce 8 new elements (one for each side, and one for each corner).