Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/io-developer/js-resizable
Vanilla JS dom element resizing
https://github.com/io-developer/js-resizable
dom drag-drop element javascript native resizable resize
Last synced: 4 months ago
JSON representation
Vanilla JS dom element resizing
- Host: GitHub
- URL: https://github.com/io-developer/js-resizable
- Owner: io-developer
- License: mit
- Created: 2014-08-04T10:12:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-24T11:52:36.000Z (about 7 years ago)
- Last Synced: 2024-10-05T06:39:15.020Z (4 months ago)
- Topics: dom, drag-drop, element, javascript, native, resizable, resize
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# resizable
Pure JS resizing for any binded DOM element.
You can mixin behavior with lib __js-dragndrop__## Example
```html
resizable.initOnDocumentReady();
.js-resizable {
-moz-user-select: none;
-o-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}
.js-resizable-corner {
position: absolute;
right: 0px;
bottom: 0px;
width: 10px;
height: 10px;
background: #000;
}
.outer {
display: block;
position: relative;
width: 640px;
height: 480px;
margin: 20px;
background-color: #EEE;
}
.inner {
display: block;
position: absolute;
min-width: 100px;
min-height: 50px;
padding: 20px;
}
.inner--1 {
left: 100px;
top: 100px;
width: 300px;
height: 200px;
background-color: #b1b1ff;
}
.inner--2 {
left: 100px;
top: 50px;
background-color: #92f192;
}
.inner--3 {
left: 400px;
top: 200px;
background-color: #ec7777;
}
Content A
Sub-content A
Content B
```