<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<div class='container'>
<div class='text'>Hello<br />World<br /> I'm Steffi</div>
<div class='triangleA'></div>
<div class='triangleB'>
<div class='text'>
Can you <br />
Help Me Please</div>
</div>
<div class='triangleC'>
<div class='text'>
Stackover-<br />flow.com
</div>
</div>
</div>
</body>
</html>
.container {
position: absolute;
overflow: hidden;
width: 550px;
height: 500px;
background: #9f9f9f;
}
div.text {
font: bold 45px 'Helvetica';
text-align: left;
margin: 120px 0 0 180px;
line-height: 40px;
color: #3f3f3f;
text-transform: uppercase;
text-shadow: 0px 1px rgba(255,255,255,.4);
}
div.triangleA, div.triangleB, div.triangleC {
position: absolute;
}
div.triangleA {
background: #afafaf;
width: 500px;
height: 600px;
transform: rotate(45deg);
top: -350px;
left: -230px;
}
div.triangleB {
background: rgba(255,255,255,.4);
overflow: hidden;
width: 500px;
height: 600px;
transform: rotate(-70deg);
top: 200px;
left: -230px;
}
div.triangleB div.text {
transform: rotate(70deg);
margin-left: 240px;
margin-top: 550px;
width: 500px;
}
div.triangleC {
background: #8f8f8f;
transform: rotate(-25deg);
top: 370px;
left: 100px;
height: 300px;
width: 600px;
overflow: hidden;
}
div.triangleC div.text {
transform: rotate(25deg);
margin: 0;
margin-left: 190px;
margin-top: 60px;
}
Output
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |