javascript drag and drop page builder -
i'm in process of building a4 size drag , drop page builder. elements builder can contain images , text boxes.
i after advice on frameworks available can used build type of front-end functionality.
example of i'm after, see here canva.com
the 2 frameworks tried far fabric js , greensock draggable, didn’t meet needs or pretty difficult create complete page builder.
ideally don't want use canvas this.
edit: basic feature:
- cropping
- rotation
- re-sizing
- change font style/color/size textboxes
- add backgrounds
- frames/ masking images (square image can become star shape overlay)
well, of goals can achieved css 2/3 + pure js
clipping/masking
http://www.html5rocks.com/en/tutorials/masking/adobe/
re-sizing, change font style/color/size textboxes, add backgrounds
pure js/css2
rotation
css3 transform property http://www.w3schools.com/cssref/css3_pr_transform.asp
dragging
can pretty done, using pure js or can try open-source plugins, or jquery draggable.
as current list, don't see, why want framework this, when of can achieved pure js/css little effort/googling.
in humble opininon, jquery or similar need. check jquery's "interactions" section here https://jqueryui.com/draggable/ see if can building builder interface. there various examples each interaction (right sidebar).
upd: here dirty code example (using jquery ui) http://jsfiddle.net/tbpxnxrm/2/. doubleclick in #main create additional elements. no collision/overlapping checks implemented, forked http://jsfiddle.net/4vfm5/1095/
drag_defaults = {grid: [50,50], containment: "parent"}; resize_defaults = { aspectratio: true, handles: 'ne, se, sw, nw', grid: [50,50], minheight: 50, minwidth: 50 } $('.draggable').draggable(drag_defaults); $('.resizable').resizable(resize_defaults);
Comments
Post a Comment