Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Web Components - Shadow DOM: Sample" />
  <meta charset="utf-8">
  <title>Web Components - Template: Sample</title>
  <template id="template">
    <style>
      @keyframes roll {
        0% {transform: rotateY(0deg)}
        100% {transform: rotateY(360deg)}
      }
      .webcomponents {
        transform-style: preserve-3d;
        animation: roll 2s infinite linear;
      }
      #container {
        perspective: 800px;
        font-family: sans-serif;
      }
    </style>
    <div id="container">
      <img class="webcomponents" src="http://webcomponents.org/img/logo.svg">
      <content select="h1"></content>
    </div>
  </template>
</head>
<body>
  <div id="host">
    <h1>This is Shadow DOM!</h1>
  </div>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
agektmrpro
0viewers