html
html
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<button onclick="scale()">scale</button>
<div id="out">
<div id="in">up<br><br><br><br>down</div>
</div>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
body {
}
#out{
width: 200px;
height: 200px;
background-color: blue;
overflow: scroll;
}
#in{
width: 100px;
height: 100px;
background-color: green;
}
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
function scale() {
document.getElementById('in').style.transform = 'scale(1, 5)'
}
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run