Frank Lee
Frank Lee

Reputation: 171

Change the size of an element by mouse(or touch in mobile) using javascript (or css ,that's better if possible), not considering the jquery ui

I wanna change the size of an element by mouse(or touch in mobile) using javascript ( pure javascript or css ,that's better if possible). And it must be very smooth both in mobile and desktop(I wanna do an online editor,smooth is importnat).

And I know one way to do that using jquery:

$( "#resizable" ).resizable();
  }); 

I wonder how to do that effect in pure js or css only? or do you have a more efficient way to do that in an online editor using just html and javascript?

Upvotes: 0

Views: 615

Answers (1)

Tanmay
Tanmay

Reputation: 590

You Can use the code from the below link and use it as your requirements

Upvotes: 1

Related Questions