Fork me on GitHub

Toggler

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod

<div id="myToggler">
  <button class="header btn toggler-header-collapsed">Read More</button>
  <p class="content toggler-content-collapsed">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod</div>
</p>
YUI().use(
  'aui-toggler',
  function(Y) {
    new Y.Toggler(
      {
        container: '#myToggler',
        content: '.content',
        expanded: false,
        header: '.header'
      }
    );
  }
);