I want to make a resize-rotate box appear when I click a div

So if you know google slides you know about the little resize boxes that appear when you click, for example, a text box. Is this possible to do in javascript/HTML? I am making an interactive form that allows you to change things such as an image. If it is possible, let me know. Thanks!