SHARE
TWEET

Untitled

a guest Apr 21st, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script src="node_modules/metismenu/dist/metisMenu.js"></script>
  2. <script>
  3.   var header_wrap_height = $('.header_wrap').height();
  4.   $('.metismenu').metisMenu({
  5.       toggle: false,
  6.       triggerElement: '.pricing-link',
  7.       parentTrigger: '.pricing-item',
  8.       subMenu: '.pricing-table'
  9.     })
  10.     .on('shown.metisMenu', function (event) {
  11.       $('body,html').animate({
  12.         scrollTop: $(event.target).parent('.pricing-item').position().top - header_wrap_height
  13.       }, 600);
  14.     });
  15. </script>
RAW Paste Data
Top