<section id="show-hide-timing" class="animate-things-wrapper">
    <button id="trigger">Trigger</button>

    <div id="box" class="box">
        Hi there
    </div>
</section>

<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="../../js/components/show-hide-timing.js"></script>
<section id="show-hide-timing" class="animate-things-wrapper">
    <button id="trigger">Trigger</button>

    <div id="box" class="box">
        Hi there
    </div>
</section>

<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="{{ path '/js/components/show-hide-timing.js' }}"></script>
/* No context defined. */
  • Content:
    (function () {
      document.addEventListener('DOMContentLoaded', function () {
        console.log("show-hide-timing active");
    
        const $button = $('#trigger');
        const $box = $('#box');
    
        $button.click(function() {
          $box.toggle(1000);
        });
      });
    })();
    
  • URL: /components/raw/show-hide-timing/show-hide-timing.js
  • Filesystem Path: components/02-jquery/02-show-hide-timing/show-hide-timing.js
  • Size: 262 Bytes
  • Handle: @show-hide-timing
  • Preview:
  • Filesystem Path: components/02-jquery/02-show-hide-timing/show-hide-timing.hbs

No notes defined.