cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <section class="section">
<div class="container">
  
  <div class="columns">
    <div class="column">
      <h1 class="title">micron.jsを使ったデモ</h1>
      <br>
      <h3 class='subtitle'># data属性のみでアニメーションを付ける場合</h3>
      
      <div id="buttons">
        <a class="button is-primary"  data-micron="bounce">bounce</a>
        <a class="button is-link" data-micron="shake">shake</a>
        <a class="button is-info" data-micron="tada">tada</a>
        <a class="button is-success" data-micron="flicker">flicker</a>
        <a class="button is-warning" data-micron="squeeze">squeeze</a>
        <a class="button is-danger" data-micron="pop">pop</a>
      </div>
      <br><br>
      
      <div id="bind">
        <h3 class='subtitle'># 他要素と連携させる場合</h3>
        <a class="button is-success" data-micron="pop" data-micron-bind="true" data-micron-id="me">Click ME</a>
        <i class="fas fa-address-book fa-4x" id='me'></i>
      </div>
      <br><br>
      
      
      <div id="jsaction">
        <h3 class='subtitle'># Javascriptで処理を書いた場合</h3>
        
        <a class="button is-link" id="clickMe"><i class="fab fa-js-square" id="ijs"></i> Click ME</a>
       
      </div>
      
      
      
   </div>
 
  </div>

</div>
  </section>
            
          
!
            
              

$("#clickMe").click(() => {
  micron.getEle("#ijs")
        .interaction("bounce")
        .duration(".95")
        .timing("linear");
});
            
          
!
999px
Loading ..................

Console