Difference between revisions of "Template:IONIS Paris/JS"

Line 8: Line 8:
 
<script src="http://thebootstrapthemes.com/live/thebootstrapthemes-photography/assets/gallery/jquery.blueimp-gallery.min.js"></script>
 
<script src="http://thebootstrapthemes.com/live/thebootstrapthemes-photography/assets/gallery/jquery.blueimp-gallery.min.js"></script>
  
<script  type="text/javascript">
+
 
jQuery(document).ready(function($) {
+
+
$(".scroll a, .navbar-brand, .gototop").click(function(event){ 
+
event.preventDefault();
+
$('html,body').animate({scrollTop:$(this.hash).offset().top}, 600,'swing');
+
$(".scroll li").removeClass('active');
+
$(this).parents('li').toggleClass('active');
+
});
+
});
+
  
 
var wow = new WOW(
 
var wow = new WOW(

Revision as of 08:18, 5 August 2015

var wow = new WOW( { boxClass: 'wowload', // animated element css class (default is wow) animateClass: 'animated', // animation css class (default is animated) offset: 0, // distance to the element when triggering the animation (default is 0) mobile: true, // trigger animations on mobile devices (default is true) live: true // act on asynchronously loaded content (default is true) } ); wow.init(); $('.carousel').swipe( { swipeLeft: function() { $(this).carousel('next'); }, swipeRight: function() { $(this).carousel('prev'); }, allowPageScroll: 'vertical' });