Guest User

Untitled

a guest
Jul 16th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $(function () {
  2. var featureContainers = $('div.features > div');
  3. var featureNav = $('div.features ul.features-nav a');
  4. featureContainers.hide().filter(':first').show();
  5. featureNav.filter(':first').addClass('current');
  6.  
  7. featureNav.click(function (event) {
  8. event.preventDefault();
  9. if (!$(this).hasClass('current')) {
  10. featureContainers.filter(':visible').fadeOut(900);
  11. featureContainers.filter(this.hash).fadeIn(900);
  12. featureNav.removeClass('current');
  13. $(this).addClass('current');
  14. }
  15. });
Add Comment
Please, Sign In to add comment