coherent-gameface-interaction-manager
Version:
Library for the most common UI interactions
32 lines (29 loc) • 1.03 kB
HTML
<!--Copyright (c) Coherent Labs AD. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. -->
<html lang="en">
<head>
<title>Resize Demo</title>
<style>
body {
background-color: white;
}
.square {
width: 300px;
height: 300px;
background-color: cadetblue;
border: 10px solid black;
border-bottom-color: tomato;
border-right-color: tomato;
box-sizing: border-box;
}
</style>
</head>
<body>
<h1>Drag the bottom and right border or the bottom-right corner to change the element size</h1>
<div class="square"></div>
<script src="../../dist/resize.js"></script>
<script>
const square = new resize({ element: '.square', edgeWidth: 10 });
</script>
</body>
</html>