< >

bustify.php


Quell Code


 
<main class="main article">

  
  <h1 class="article__heading">
    Bustify.js  </h1>
      <section class="article__demo">
      <div class="container container--mid">
  <img src="https://matthewlein.com/content/experiments/bustify/solar.jpg" id="solar">
</div>

<script src="https://matthewlein.com/content/experiments/bustify/bustify.js"></script>
<script>
  var img = document.getElementById('solar');

  function bust() {
    img.bustify({
      width: 30,
      height: 30,
      intensity: 1,
    });
  }
  if (img.complete) {
    bust();
  } else {
    img.addEventListener('load', bust);
  }
</script>

 
  </div>

</main>


Add Comment

* Required information
1000
Powered by Commentics

Comments (1)

Gravatar
Admin
Sascha65says...

Die Canvas Balken Uhr ist ja mal Fett