Advertisement
salmancreation

custom js wp

Nov 23rd, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. (function ($) {
  2. "use strict";
  3.  
  4. new WOW().init();
  5.  
  6.  
  7. $(document).ready(function () {
  8.  
  9. $("#stickymenu").sticky({
  10. topSpacing: 0
  11. });
  12.  
  13. // one page nav
  14. $('#nav').onePageNav({
  15. currentClass: 'active',
  16. changeHash: true,
  17. scrollSpeed: 4000,
  18. scrollThreshold: 0.5,
  19. filter: '',
  20. easing: 'swing',
  21. begin: function() {
  22. //I get fired when the animation is starting
  23. },
  24. end: function() {
  25. //I get fired when the animation is ending
  26. },
  27. scrollChange: function(jQuerycurrentListItem) {
  28. //I get fired when you enter a section and I pass the list item of the section
  29. }
  30. });
  31.  
  32. // Active meanmenu
  33. jQuery('header nav').meanmenu({
  34. meanRevealPosition: "center"
  35. });
  36.  
  37. // Active slider
  38. $(window).load(function() {
  39. $('.flexslider').flexslider({
  40. animation: "fade",
  41. smoothHeight: true,
  42. controlNav: false,
  43. prevText: "",
  44. nextText: "",
  45. });
  46.  
  47.  
  48. });
  49.  
  50. // Active Testimonial carousel
  51. $("#testimonail_carousel").owlCarousel({
  52. items : 3,
  53. itemsDesktop : [1199,3],
  54. itemsDesktopSmall : [980,2],
  55. itemsTablet: [768,1],
  56. itemsMobile : [479,1],
  57. pagination : false,
  58. navigation : true,
  59. navigationText : ["",""],
  60. });
  61.  
  62. // Active Testimonial carousel
  63. $("#portfolios_carousel").owlCarousel({
  64. items : 3,
  65. itemsDesktop : [1199,3],
  66. itemsDesktopSmall : [980,2],
  67. itemsTablet: [768,1],
  68. itemsMobile : [479,1],
  69. pagination : false,
  70. navigation : true,
  71. navigationText : ["",""],
  72. });
  73.  
  74. });
  75.  
  76. })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement