From f1606e5469099ccd8284276230e48877c9ffabd2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=81lvaro?= <atrigol@gmail.com>
Date: Thu, 7 Jul 2016 16:57:33 +0200
Subject: [PATCH] - Added gulp and `dist` files - Updated package.json -
 Improved credits comments

---
 .gitignore                          |   1 +
 dist/jquery.multiscroll.css         |  99 ++++
 dist/jquery.multiscroll.js          | 865 ++++++++++++++++++++++++++++
 dist/jquery.multiscroll.min.css     |   8 +
 dist/jquery.multiscroll.min.css.map |   1 +
 dist/jquery.multiscroll.min.js      |  15 +-
 dist/jquery.multiscroll.min.js.map  |   1 +
 gulpfile.js                         |  38 +-
 jquery.multiscroll.css              |   8 +-
 jquery.multiscroll.js               |   5 +-
 package.json                        |  19 +-
 11 files changed, 1026 insertions(+), 34 deletions(-)
 create mode 100644 dist/jquery.multiscroll.css
 create mode 100644 dist/jquery.multiscroll.js
 create mode 100644 dist/jquery.multiscroll.min.css
 create mode 100644 dist/jquery.multiscroll.min.css.map
 create mode 100644 dist/jquery.multiscroll.min.js.map

diff --git a/.gitignore b/.gitignore
index 1554707..8af92c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 *.DS_Store
+bower_components/
 /node_modules/
\ No newline at end of file
diff --git a/dist/jquery.multiscroll.css b/dist/jquery.multiscroll.css
new file mode 100644
index 0000000..d5ca671
--- /dev/null
+++ b/dist/jquery.multiscroll.css
@@ -0,0 +1,99 @@
+/*!
+ * multiscroll.js 0.1.7 Beta
+ * https://github.com/alvarotrigo/multiscroll.js
+ * @license MIT licensed
+ *
+ * Copyright (C) 2016 alvarotrigo.com - A project by Alvaro Trigo
+ */
+html, body {
+    margin: 0;
+    padding: 0;
+	overflow:hidden;
+	-webkit-tap-highlight-color: rgba(0,0,0,0);
+}
+.ms-section {
+    position: relative;
+    -webkit-box-sizing: border-box;
+    -moz-box-sizing: border-box;
+    box-sizing: border-box;
+}
+.ms-section.ms-table{
+    display: table;
+    width: 100%;
+}
+.ms-tableCell {
+    display: table-cell;
+    vertical-align: middle;
+    width: 100%;
+    height: 100%;
+}
+.ms-easing {
+    -webkit-transition: all 0.7s ease-out;
+    -moz-transition: all 0.7s ease-out;
+    -o-transition: all 0.7s ease-out;
+    transition: all 0.7s ease-out;
+}
+#multiscroll-nav {
+    position: fixed;
+    z-index: 100;
+    margin-top: -32px;
+    top: 50%;
+    opacity: 1;
+}
+#multiscroll-nav.right {
+    right: 17px;
+}
+#multiscroll-nav.left {
+    left: 17px;
+}
+#multiscroll-nav ul{
+  margin: 0;
+  padding: 0;
+}
+#multiscroll-nav li{
+    display: block;
+    width: 14px;
+    height: 13px;
+    margin: 7px;
+    position:relative;
+}
+#multiscroll-nav li a{
+    display: block;
+    position: relative;
+    z-index: 1;
+    width: 100%;
+    height: 100%;
+    cursor: pointer;
+    text-decoration: none;
+}
+#multiscroll-nav li .active span{
+    background: #333;
+}
+#multiscroll-nav span{
+    top: 2px;
+    left: 2px;
+    width: 8px;
+    height: 8px;
+    border: 1px solid #000;
+    background: rgba(0, 0, 0, 0);
+    -webkit-border-radius: 50%;
+    -moz-border-radius: 50%;
+    border-radius: 50%;
+    position: absolute;
+    z-index: 1;
+}
+.multiscroll-tooltip {
+    position: absolute;
+    color: #fff;
+    font-size: 14px;
+    font-family: arial, helvetica, sans-serif;
+    top: -2px;
+    white-space: nowrap;
+    max-width: 220px;
+}
+.multiscroll-tooltip.right {
+    right: 20px;
+}
+.multiscroll-tooltip.left {
+    left: 20px;
+}
diff --git a/dist/jquery.multiscroll.js b/dist/jquery.multiscroll.js
new file mode 100644
index 0000000..9ea9062
--- /dev/null
+++ b/dist/jquery.multiscroll.js
@@ -0,0 +1,865 @@
+/*!
+ * multiscroll.js 0.1.7 Beta
+ * https://github.com/alvarotrigo/multiscroll.js
+ * @license MIT licensed
+ *
+ * Copyright (C) 2016 alvarotrigo.com - A project by Alvaro Trigo
+ */
+(function($, window, document, Math, undefined) {
+
+	$.fn.multiscroll = function(options) {
+		var MS = $.fn.multiscroll;
+
+		// Create some defaults, extending them with any options that were provided
+		options = $.extend({
+			'verticalCentered' : true,
+			'scrollingSpeed': 700,
+			'easing': 'easeInQuart',
+			'menu': false,
+			'sectionsColor': [],
+			'anchors':[],
+			'navigation': false,
+			'navigationPosition': 'right',
+			'navigationColor': '#000',
+			'navigationTooltips': [],
+			'loopBottom': false,
+			'loopTop': false,
+			'css3': false,
+			'paddingTop': 0,
+			'paddingBottom': 0,
+			'fixedElements': null,
+			'normalScrollElements': null,
+			'keyboardScrolling': true,
+			'touchSensitivity': 5,
+
+			// Custom selectors
+			'sectionSelector': '.ms-section',
+			'leftSelector': '.ms-left',
+			'rightSelector': '.ms-right',
+
+			//events
+			'afterLoad': null,
+			'onLeave': null,
+			'afterRender': null,
+			'afterResize': null
+		}, options);
+
+		//Defines the delay to take place before being able to scroll to the next section
+		//BE CAREFUL! Not recommened to change it under 400 for a good behavior in laptops and
+		//Apple devices (laptops, mouses...)
+		var scrollDelay = 600;
+
+		var isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0) || (navigator.maxTouchPoints));
+
+		// adding class namef for right and left blocks
+		if (options.rightSelector !== '.ms-right') {
+			$(options.rightSelector).addClass('ms-right');
+		}
+
+		if (options.leftSelector !== '.ms-left') {
+			$(options.leftSelector).addClass('ms-left');
+		}
+
+		var numberSections = $('.ms-left').find('.ms-section').length;
+		var isMoving = false;
+		var nav;
+		var windowHeight = $(window).height();
+
+
+		addMouseWheelHandler();
+		addTouchHandler();
+
+		//if css3 is not supported, it will use jQuery animations
+		if(options.css3){
+			options.css3 = support3d();
+		}
+
+		$('html, body').css({
+			'overflow' : 'hidden',
+			'height' : '100%'
+		});
+
+		//adding class names to each sections
+		if (options.sectionSelector !== '.ms-section') {
+			$(options.sectionSelector).each(function(){
+				$(this).addClass('ms-section');
+			});
+		}
+
+		//creating the navigation dots
+		if (options.navigation) {
+			$('body').append('<div id="multiscroll-nav"><ul></ul></div>');
+			nav = $('#multiscroll-nav');
+
+			nav.css('color', options.navigationColor);
+			nav.addClass(options.navigationPosition);
+		}
+
+		$('.ms-right, .ms-left').css({
+			'width': '50%',
+			'position': 'absolute',
+			'height': '100%',
+			'-ms-touch-action': 'none'
+		});
+
+		$('.ms-right').css({
+			'right': '1px', //http://stackoverflow.com/questions/23675457/chrome-and-opera-creating-small-padding-when-using-displaytable
+			'top': '0',
+			'-ms-touch-action': 'none',
+			'touch-action': 'none'
+		});
+
+		$('.ms-left').css({
+			'left': '0',
+			'top': '0',
+			'-ms-touch-action': 'none',
+			'touch-action': 'none'
+		});
+
+
+		$('.ms-left .ms-section, .ms-right .ms-section').each(function(){
+			var sectionIndex = $(this).index();
+
+			if(options.paddingTop || options.paddingBottom){
+				$(this).css('padding', options.paddingTop  + ' 0 ' + options.paddingBottom + ' 0');
+			}
+
+			if (typeof options.sectionsColor[sectionIndex] !==  'undefined') {
+				$(this).css('background-color', options.sectionsColor[sectionIndex]);
+			}
+
+			if (typeof options.anchors[sectionIndex] !== 'undefined') {
+				$(this).attr('data-anchor', options.anchors[sectionIndex]);
+			}
+
+			if(options.verticalCentered){
+				addTableClass($(this));
+			}
+
+			//only for the left panel
+			if($(this).closest('.ms-left').length && options.navigation) {
+				var link = '';
+				if(options.anchors.length){
+					link = options.anchors[sectionIndex];
+				}
+				var tooltip = options.navigationTooltips[sectionIndex];
+				if(typeof tooltip === 'undefined'){
+					tooltip = '';
+				}
+				if (options.navigation) {
+					nav.find('ul').append('<li data-tooltip="' + tooltip + '"><a href="#' + link + '"><span></span></a></li>');
+				}
+			}
+		});
+
+		//inverting the right panel
+		$('.ms-right').html( $('.ms-right').find('.ms-section').get().reverse());
+
+		$('.ms-left .ms-section, .ms-right .ms-section').each(function(){
+			var sectionIndex = $(this).index();
+
+			$(this).css({
+				'height': '100%'
+			});
+
+
+			if(!sectionIndex && options.navigation ){
+				//activating the navigation bullet
+				nav.find('li').eq(sectionIndex).find('a').addClass('active');
+			}
+		}).promise().done(function(){
+
+			//if no active section is defined, the 1st one will be the default one
+			if(!$('.ms-left .ms-section.active').length){
+				$('.ms-right').find('.ms-section').last().addClass('active');
+				$('.ms-left').find('.ms-section').first().addClass('active');
+			}
+
+			//vertical centered of the navigation + first bullet active
+			if(options.navigation){
+				nav.css('margin-top', '-' + (nav.height()/2) + 'px');
+			}
+			$.isFunction( options.afterRender ) && options.afterRender.call( this);
+
+			//scrolling to the defined active section and adjusting right and left panels
+			silentScroll();
+
+			//setting the class for the body element
+			setBodyClass();
+
+			$(window).on('load', function() {
+				scrollToAnchor();
+			});
+		});
+
+
+		//detecting any change on the URL to scroll to the given anchor link
+		//(a way to detect back history button as we play with the hashes on the URL)
+		$(window).on('hashchange', hashChangeHandler);
+
+		function hashChangeHandler(){
+			var value =  window.location.hash.replace('#', '');
+			var sectionAnchor = value;
+
+			if(sectionAnchor.length){
+				var section = $('.ms-left').find('[data-anchor="'+sectionAnchor+'"]');
+
+				var isFirstScrollMove = (typeof lastScrolledDestiny === 'undefined' );
+
+				if (isFirstScrollMove || sectionAnchor !== lastScrolledDestiny){
+					scrollPage(section);
+				}
+			}
+		};
+
+
+		/**
+		* Sliding with arrow keys, both, vertical and horizontal
+		*/
+		$(document).keydown(keydownHandler);
+
+
+		var keydownId;
+		function keydownHandler(e) {
+			clearTimeout(keydownId);
+
+			var activeElement = $(document.activeElement);
+
+			if(!activeElement.is('textarea') && !activeElement.is('input') && !activeElement.is('select') &&
+				options.keyboardScrolling){
+				var keyCode = e.which;
+
+				//preventing the scroll with arrow keys & spacebar & Page Up & Down keys
+				var keyControls = [40, 38, 32, 33, 34];
+				if($.inArray(keyCode, keyControls) > -1){
+					e.preventDefault();
+				}
+
+				keydownId = setTimeout(function(){
+					onkeydown(e);
+				},150);
+			}
+		}
+
+		/**
+		 * Sliding with arrow keys, both, vertical and horizontal
+		 */
+		function onkeydown(e){
+			var shiftPressed = e.shiftKey;
+
+			switch (e.which) {
+				//up
+				case 38:
+				case 33:
+					MS.moveSectionUp();
+					break;
+
+				//down
+				case 32: //spacebar
+					if(shiftPressed){
+						MS.moveSectionUp();
+						break;
+					}
+				case 40:
+				case 34:
+					MS.moveSectionDown();
+					break;
+
+				//Home
+				case 36:
+					MS.moveTo(1);
+					break;
+
+				//End
+				case 35:
+					MS.moveTo( $('.ms-left .ms-section').length);
+					break;
+
+				default:
+					return; // exit this handler for other keys
+			}
+		}
+
+		/**
+		 * Disabling any action when pressing of the mouse wheel (Chrome, IE, Opera, Safari)
+		 */
+		$(document).mousedown(function(e) {
+			if(e.button == 1){
+				e.preventDefault();
+				return false;
+			}
+		});
+
+		//navigation action
+		$(document).on('click', '#multiscroll-nav a', function(e){
+			e.preventDefault();
+			var index = $(this).parent().index();
+			scrollPage($('.ms-left .ms-section').eq(index));
+		});
+
+		//navigation tooltips
+		$(document).on({
+			mouseenter: function(){
+				var tooltip = $(this).data('tooltip');
+				$('<div class="multiscroll-tooltip ' + options.navigationPosition +'">' + tooltip + '</div>').hide().appendTo($(this)).fadeIn(200);
+			},
+			mouseleave: function(){
+				$(this).find('.multiscroll-tooltip').fadeOut(200, function() {
+					$(this).remove();
+				});
+			}
+		}, '#multiscroll-nav li');
+
+
+		if(options.normalScrollElements){
+			$(document).on('mouseenter', options.normalScrollElements, function () {
+				MS.setMouseWheelScrolling(false);
+			});
+
+			$(document).on('mouseleave', options.normalScrollElements, function(){
+				MS.setMouseWheelScrolling(true);
+			});
+		}
+
+
+		//when resizing the site, we adjust the heights of the sections
+		$(window).on('resize', doneResizing);
+
+		/**
+		 * When resizing is finished, we adjust the slides sizes and positions
+		 */
+		function doneResizing() {
+			windowHeight = $(window).height();
+			$('.ms-tableCell').each(function() {
+				$(this).css({ height: getTableHeight($(this).parent()) });
+			});
+			silentScroll();
+			$.isFunction( options.afterResize ) && options.afterResize.call( this);
+		}
+
+		function silentScroll(){
+			//moving the right section to the bottom
+			if(options.css3){
+				transformContainer($('.ms-left'), 'translate3d(0px, -' + $('.ms-left').find('.ms-section.active').position().top + 'px, 0px)', false);
+				transformContainer($('.ms-right'), 'translate3d(0px, -' + $('.ms-right').find('.ms-section.active').position().top + 'px, 0px)', false);
+			}else{
+				$('.ms-left').css('top', -$('.ms-left').find('.ms-section.active').position().top );
+				$('.ms-right').css('top', -$('.ms-right').find('.ms-section.active').position().top );
+			}
+		}
+
+		MS.moveSectionUp = function(){
+			var prev = $('.ms-left .ms-section.active').prev('.ms-section');
+
+			if(!prev.length && options.loopTop){
+				prev = $('.ms-left .ms-section').last();
+			}
+
+			if (prev.length) {
+				scrollPage(prev);
+			}
+		};
+
+		MS.moveSectionDown = function (){
+			var next = $('.ms-left .ms-section.active').next('.ms-section');
+
+			if(!next.length && options.loopBottom ){
+				next = $('.ms-left .ms-section').first();
+			}
+
+			if(next.length){
+				scrollPage(next);
+			}
+		};
+
+		MS.moveTo = function (section){
+			var destiny = '';
+
+			if(isNaN(section)){
+				destiny = $('.ms-left [data-anchor="'+section+'"]');
+			}else{
+				destiny = $('.ms-left .ms-section').eq( (section -1) );
+			}
+
+			scrollPage(destiny);
+		};
+
+		function scrollPage(leftDestination){
+			var leftDestinationIndex = leftDestination.index();
+			var rightDestination = $('.ms-right').find('.ms-section').eq( numberSections -1 - leftDestinationIndex);
+			var rightDestinationIndex = numberSections - 1 - leftDestinationIndex;
+			var anchorLink  = leftDestination.data('anchor');
+			var activeSection = $('.ms-left .ms-section.active');
+			var leavingSection = activeSection.index() + 1;
+			var yMovement = getYmovement(leftDestination);
+
+			//preventing from activating the MouseWheelHandler event
+			//more than once if the page is scrolling
+			isMoving = true;
+
+			var topPos = {
+				'left' : leftDestination.position().top,
+				'right': rightDestination.position().top
+			};
+
+			rightDestination.addClass('active').siblings().removeClass('active');
+			leftDestination.addClass('active').siblings().removeClass('active');
+
+			setURLHash(anchorLink);
+
+			// Use CSS3 translate functionality or...
+			if (options.css3){
+				//callback (onLeave)
+				$.isFunction(options.onLeave) && options.onLeave.call(this, leavingSection, (leftDestinationIndex + 1), yMovement);
+
+				var translate3dLeft = 'translate3d(0px, -' + topPos['left'] + 'px, 0px)';
+				var translate3dRight = 'translate3d(0px, -' + topPos['right'] + 'px, 0px)';
+
+				transformContainer($('.ms-left'), translate3dLeft, true);
+				transformContainer($('.ms-right'), translate3dRight, true);
+
+				setTimeout(function () {
+					//callback (afterLoad)
+					$.isFunction(options.afterLoad) && options.afterLoad.call(this, anchorLink, (leftDestinationIndex + 1));
+
+					setTimeout(function () {
+						isMoving = false;
+					}, scrollDelay);
+				}, options.scrollingSpeed);
+			}else{
+				//callback (onLeave)
+				$.isFunction(options.onLeave) && options.onLeave.call(this, leavingSection, (leftDestinationIndex + 1), yMovement);
+
+				$('.ms-left').animate({
+					'top': -topPos['left']
+				}, options.scrollingSpeed, options.easing, function(){
+					$.isFunction(options.afterLoad) && options.afterLoad.call(this, anchorLink, (leftDestinationIndex + 1));
+
+					setTimeout(function () {
+						isMoving = false;
+					}, scrollDelay);
+				});
+
+				$('.ms-right').animate({
+					'top': -topPos['right']
+				}, options.scrollingSpeed, options.easing);
+			}
+
+			//flag to avoid callingn `scrollPage()` twice in case of using anchor links
+			lastScrolledDestiny = anchorLink;
+
+			activateMenuElement(anchorLink);
+			activateNavDots(anchorLink, leftDestinationIndex);
+		}
+
+		/**
+		* Removes the auto scrolling action fired by the mouse wheel and tackpad.
+		* After this function is called, the mousewheel and trackpad movements won't scroll through sections.
+		*/
+		function removeMouseWheelHandler(){
+			if (document.addEventListener) {
+				document.removeEventListener('mousewheel', MouseWheelHandler, false); //IE9, Chrome, Safari, Oper
+				document.removeEventListener('wheel', MouseWheelHandler, false); //Firefox
+			} else {
+				document.detachEvent("onmousewheel", MouseWheelHandler); //IE 6/7/8
+			}
+		}
+
+		/**
+		* Adds the auto scrolling action for the mouse wheel and tackpad.
+		* After this function is called, the mousewheel and trackpad movements will scroll through sections
+		*/
+		function addMouseWheelHandler(){
+			if (document.addEventListener) {
+				document.addEventListener("mousewheel", MouseWheelHandler, false); //IE9, Chrome, Safari, Oper
+				document.addEventListener("wheel", MouseWheelHandler, false); //Firefox
+			} else {
+				document.attachEvent("onmousewheel", MouseWheelHandler); //IE 6/7/8
+			}
+		}
+
+		/**
+		 * Detecting mousewheel scrolling
+		 *
+		 * http://blogs.sitepointstatic.com/examples/tech/mouse-wheel/index.html
+		 * http://www.sitepoint.com/html5-javascript-mouse-wheel/
+		 */
+		function MouseWheelHandler(e) {
+			// cross-browser wheel delta
+			e = window.event || e;
+			var delta = Math.max(-1, Math.min(1,
+					(e.wheelDelta || -e.deltaY || -e.detail)));
+
+			if (!isMoving) { //if theres any #
+
+				//scrolling down?
+				if (delta < 0) {
+					MS.moveSectionDown();
+				}
+
+				//scrolling up?
+				else {
+					MS.moveSectionUp();
+				}
+			}
+
+
+			return false;
+		}
+
+		/**
+		* Adds a css3 transform property to the container class with or without animation depending on the animated param.
+		*/
+		function transformContainer(container, translate3d, animated){
+			container.toggleClass('ms-easing', animated);
+
+			container.css(getTransforms(translate3d));
+		}
+
+
+		/**
+		* Returns the transform styles for all browsers
+		*/
+		function getTransforms(translate3d){
+			return {
+				'-webkit-transform': translate3d,
+				'-moz-transform': translate3d,
+				'-ms-transform':translate3d,
+				'transform': translate3d
+			};
+		}
+
+		/**
+		 * Activating the website navigation dots according to the given slide name.
+		 */
+		function activateNavDots(name, sectionIndex){
+			if(options.navigation){
+				$('#multiscroll-nav').find('.active').removeClass('active');
+				if(name){
+					$('#multiscroll-nav').find('a[href="#' + name + '"]').addClass('active');
+				}else{
+					$('#multiscroll-nav').find('li').eq(sectionIndex).find('a').addClass('active');
+				}
+			}
+		}
+
+		/**
+		 * Activating the website main menu elements according to the given slide name.
+		 */
+		function activateMenuElement(name){
+			if(options.menu){
+				$(options.menu).find('.active').removeClass('active');
+				$(options.menu).find('[data-menuanchor="'+name+'"]').addClass('active');
+			}
+		}
+
+		/**
+		* Retuns `up` or `down` depending on the scrolling movement to reach its destination
+		* from the current section.
+		*/
+		function getYmovement(destiny){
+			var fromIndex = $('.ms-left .ms-section.active').index();
+			var toIndex = destiny.index();
+
+			if(fromIndex > toIndex){
+				return 'up';
+			}
+			return 'down';
+		}
+
+
+		/**
+		* Sets the URL hash for a section with slides
+		*/
+		function setURLHash(anchorLink){
+			if(options.anchors.length){
+				location.hash = anchorLink;
+			}
+
+			setBodyClass();
+		}
+
+		 /**
+		* Sets a class for the body of the page depending on the active section / slide
+		*/
+		function setBodyClass(){
+			var section = $('.ms-left .ms-section.active');
+			var sectionAnchor = section.data('anchor');
+			var sectionIndex = section.index();
+
+			var text = String(sectionIndex);
+
+			if(options.anchors.length){
+				text = sectionAnchor;
+			}
+
+			//changing slash for dash to make it a valid CSS style
+			text = text.replace('/', '-').replace('#','');
+
+			//removing previous anchor classes
+			var classRe = new RegExp('\\b\\s?' + 'ms-viewing' + '-[^\\s]+\\b', "g");
+			$('body')[0].className = $('body')[0].className.replace(classRe, '');
+
+			//adding the current anchor
+			$('body').addClass('ms-viewing-' + text);
+		}
+
+
+		/**
+		* Checks for translate3d support
+		* @return boolean
+		* http://stackoverflow.com/questions/5661671/detecting-transform-translate3d-support
+		*/
+		function support3d() {
+			var el = document.createElement('p'),
+				has3d,
+				transforms = {
+					'webkitTransform':'-webkit-transform',
+					'OTransform':'-o-transform',
+					'msTransform':'-ms-transform',
+					'MozTransform':'-moz-transform',
+					'transform':'transform'
+				};
+
+			// Add it to the body to get the computed style.
+			document.body.insertBefore(el, null);
+
+			for (var t in transforms) {
+				if (el.style[t] !== undefined) {
+					el.style[t] = "translate3d(1px,1px,1px)";
+					has3d = window.getComputedStyle(el).getPropertyValue(transforms[t]);
+				}
+			}
+
+			document.body.removeChild(el);
+
+			return (has3d !== undefined && has3d.length > 0 && has3d !== "none");
+		}
+
+		/**
+		* Wraps an element in order to center it vertically by using a class style.
+		*/
+		function addTableClass(element){
+			element.addClass('ms-table').wrapInner('<div class="ms-tableCell" style="height: ' + getTableHeight(element) + 'px" />');
+		}
+
+		/**
+		* Gets the height of the section after removing the paddings.
+		*/
+		function getTableHeight(section){
+			var sectionHeight = windowHeight;
+
+			if(options.paddingTop || options.paddingBottom){
+				var paddings = parseInt(section.css('padding-top')) + parseInt(section.css('padding-bottom'));
+				sectionHeight = (windowHeight - paddings);
+			}
+
+			return sectionHeight;
+		}
+
+
+		/**
+		* Scrolls the page to the existent anchor in the URL
+		*/
+		function scrollToAnchor(){
+			//getting the anchor link in the URL and deleting the `#`
+			var sectionAnchor =  window.location.hash.replace('#', '');
+			var section = $('.ms-left .ms-section[data-anchor="'+sectionAnchor+'"]');
+
+			if(sectionAnchor.length){  //if theres any #
+				scrollPage(section);
+			}
+		}
+
+		/**
+		* Adds or remove the possiblity of scrolling through sections by using the keyboard arrow keys
+		*/
+		MS.setKeyboardScrolling = function (value){
+			options.keyboardScrolling = value;
+		};
+
+		/**
+		* Adds or remove the possiblity of scrolling through sections by using the mouse wheel or the trackpad.
+		*/
+		MS.setMouseWheelScrolling = function (value){
+			if(value){
+				addMouseWheelHandler();
+			}else{
+				removeMouseWheelHandler();
+			}
+		};
+
+		/**
+		* Defines the scrolling speed
+		*/
+		MS.setScrollingSpeed = function(value){
+			options.scrollingSpeed = value;
+		};
+
+
+
+		var touchStartY = 0;
+		var touchStartX = 0;
+		var touchEndY = 0;
+		var touchEndX = 0;
+
+		/* Detecting touch events
+
+		* As we are changing the top property of the page on scrolling, we can not use the traditional way to detect it.
+		* This way, the touchstart and the touch moves shows an small difference between them which is the
+		* used one to determine the direction.
+		*/
+		function touchMoveHandler(event){
+			var e = event.originalEvent;
+
+			if(isReallyTouch(e)){
+				//preventing the easing on iOS devices
+				event.preventDefault();
+
+				var activeSection = $('.ms-left .ms-section.active');
+
+				if (!isMoving) { //if theres any #
+					var touchEvents = getEventsPage(e);
+					touchEndY = touchEvents['y'];
+					touchEndX = touchEvents['x'];
+
+
+					//is the movement greater than the minimum resistance to scroll?
+					if (Math.abs(touchStartY - touchEndY) > ($(window).height() / 100 * options.touchSensitivity)) {
+
+						if (touchStartY > touchEndY) {
+							MS.moveSectionDown();
+
+						} else if (touchEndY > touchStartY) {
+							MS.moveSectionUp();
+						}
+					}
+				}
+			}
+		}
+
+		/**
+		* As IE >= 10 fires both touch and mouse events when using a mouse in a touchscreen
+		* this way we make sure that is really a touch event what IE is detecting.
+		*/
+		function isReallyTouch(e){
+			//if is not IE   ||  IE is detecting `touch` or `pen`
+			return typeof e.pointerType === 'undefined' || e.pointerType != 'mouse';
+		}
+
+
+		/**
+		* Handler to get he coordinates of the starting touch
+		*/
+		function touchStartHandler(event){
+			var e = event.originalEvent;
+
+			if(isReallyTouch(e)){
+				var touchEvents = getEventsPage(e);
+				touchStartY = touchEvents['y'];
+				touchStartX = touchEvents['x'];
+			}
+		}
+
+
+		/**
+		* Adds the possibility to auto scroll through sections on touch devices.
+		*/
+		function addTouchHandler(){
+			if(isTouch){
+				//Microsoft pointers
+				MSPointer = getMSPointer();
+
+				$(document).off('touchstart ' +  MSPointer.down).on('touchstart ' + MSPointer.down, touchStartHandler);
+				$(document).off('touchmove ' + MSPointer.move).on('touchmove ' + MSPointer.move, touchMoveHandler);
+			}
+		}
+
+		/**
+		* Removes the auto scrolling for touch devices.
+		*/
+		function removeTouchHandler(){
+			if(isTouch){
+				//Microsoft pointers
+				MSPointer = getMSPointer();
+
+				$(document).off('touchstart ' + MSPointer.down);
+				$(document).off('touchmove ' + MSPointer.move);
+			}
+		}
+
+		/*
+		* Returns and object with Microsoft pointers (for IE<11 and for IE >= 11)
+		* http://msdn.microsoft.com/en-us/library/ie/dn304886(v=vs.85).aspx
+		*/
+		function getMSPointer(){
+			var pointer;
+
+			//IE >= 11
+			if(window.PointerEvent){
+				pointer = { down: "pointerdown", move: "pointermove"};
+			}
+
+			//IE < 11
+			else{
+				pointer = { down: "MSPointerDown", move: "MSPointerMove"};
+			}
+
+			return pointer;
+		}
+
+		/**
+		* Gets the pageX and pageY properties depending on the browser.
+		* https://github.com/alvarotrigo/fullPage.js/issues/194#issuecomment-34069854
+		*/
+		function getEventsPage(e){
+			var events = [];
+
+			events.y = (typeof e.pageY !== 'undefined' && (e.pageY || e.pageX) ? e.pageY : e.touches[0].pageY);
+			events.x = (typeof e.pageX !== 'undefined' && (e.pageY || e.pageX) ? e.pageX : e.touches[0].pageX);
+
+			//in touch devices with scrollBar:true, e.pageY is detected, but we have to deal with touch events. #1008
+			if(isTouch && isReallyTouch(e)){
+				events.y = e.touches[0].pageY;
+				events.x = e.touches[0].pageX;
+			}
+
+			return events;
+		}
+
+		/**
+		* Destroy multiscroll.js plugin's events
+		*/
+		MS.destroy = function() {
+			MS.setKeyboardScrolling(false);
+			MS.setMouseWheelScrolling(false);
+
+			$(window)
+				.off('hashchange', hashChangeHandler)
+				.off('resize', doneResizing);
+
+			$(document)
+				.off('mouseenter', '#multiscroll-nav li')
+				.off('mouseleave', '#multiscroll-nav li')
+				.off('click', '#multiscroll-nav a');
+		};
+
+		/**
+		* Build multiscroll.js plugin's events after destroy
+		*/
+		MS.build = function() {
+			MS.setKeyboardScrolling(true);
+			MS.setMouseWheelScrolling(true);
+
+			$(window)
+				.on('hashchange', hashChangeHandler)
+				.on('resize', doneResizing);
+
+			$(document)
+				.on('mouseenter', '#multiscroll-nav li')
+				.on('mouseleave', '#multiscroll-nav li')
+				.on('click', '#multiscroll-nav a');
+		};
+
+	};
+})(jQuery, window, document, Math);
\ No newline at end of file
diff --git a/dist/jquery.multiscroll.min.css b/dist/jquery.multiscroll.min.css
new file mode 100644
index 0000000..b0346a0
--- /dev/null
+++ b/dist/jquery.multiscroll.min.css
@@ -0,0 +1,8 @@
+/*!
+ * multiscroll.js 0.1.7 Beta
+ * https://github.com/alvarotrigo/multiscroll.js
+ * @license MIT licensed
+ *
+ * Copyright (C) 2016 alvarotrigo.com - A project by Alvaro Trigo
+ */body,html{margin:0;padding:0;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ms-section{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ms-section.ms-table{display:table;width:100%}.ms-tableCell{display:table-cell;vertical-align:middle;width:100%;height:100%}.ms-easing{-webkit-transition:all .7s ease-out;-moz-transition:all .7s ease-out;-o-transition:all .7s ease-out;transition:all .7s ease-out}#multiscroll-nav{position:fixed;z-index:100;margin-top:-32px;top:50%;opacity:1}#multiscroll-nav.right{right:17px}#multiscroll-nav.left{left:17px}#multiscroll-nav ul{margin:0;padding:0}#multiscroll-nav li{display:block;width:14px;height:13px;margin:7px;position:relative}#multiscroll-nav li a{display:block;position:relative;z-index:1;width:100%;height:100%;cursor:pointer;text-decoration:none}#multiscroll-nav li .active span{background:#333}#multiscroll-nav span{top:2px;left:2px;width:8px;height:8px;border:1px solid #000;background:rgba(0,0,0,0);-webkit-border-radius:50%;-moz-border-radius:50%;border-radius:50%;position:absolute;z-index:1}.multiscroll-tooltip{position:absolute;color:#fff;font-size:14px;font-family:arial,helvetica,sans-serif;top:-2px;white-space:nowrap;max-width:220px}.multiscroll-tooltip.right{right:20px}.multiscroll-tooltip.left{left:20px}
+/*# sourceMappingURL=jquery.multiscroll.min.css.map */
diff --git a/dist/jquery.multiscroll.min.css.map b/dist/jquery.multiscroll.min.css.map
new file mode 100644
index 0000000..4c046e3
--- /dev/null
+++ b/dist/jquery.multiscroll.min.css.map
@@ -0,0 +1 @@
+{"version":3,"sources":["jquery.multiscroll.css"],"names":[],"mappings":";;;;;;AAOM,KAAN,KACI,OAAQ,EACR,QAAS,EACZ,SAAS,OACT,4BAA6B,cAE9B,YACI,SAAU,SACV,mBAAoB,WACpB,gBAAiB,WACjB,WAAY,WAEhB,qBACI,QAAS,MACT,MAAO,KAEX,cACI,QAAS,WACT,eAAgB,OAChB,MAAO,KACP,OAAQ,KAEZ,WACI,mBAAoB,IAAI,IAAK,SAC7B,gBAAiB,IAAI,IAAK,SAC1B,cAAe,IAAI,IAAK,SACxB,WAAY,IAAI,IAAK,SAEzB,iBACI,SAAU,MACV,QAAS,IACT,WAAY,MACZ,IAAK,IACL,QAAS,EAEb,uBACI,MAAO,KAEX,sBACI,KAAM,KAEV,oBACE,OAAQ,EACR,QAAS,EAEX,oBACI,QAAS,MACT,MAAO,KACP,OAAQ,KACR,OAAQ,IACR,SAAS,SAEb,sBACI,QAAS,MACT,SAAU,SACV,QAAS,EACT,MAAO,KACP,OAAQ,KACR,OAAQ,QACR,gBAAiB,KAErB,iCACI,WAAY,KAEhB,sBACI,IAAK,IACL,KAAM,IACN,MAAO,IACP,OAAQ,IACR,OAAQ,IAAI,MAAM,KAClB,WAAY,cACZ,sBAAuB,IACvB,mBAAoB,IACpB,cAAe,IACf,SAAU,SACV,QAAS,EAEb,qBACI,SAAU,SACV,MAAO,KACP,UAAW,KACX,YAAa,MAAO,UAAW,WAC/B,IAAK,KACL,YAAa,OACb,UAAW,MAEf,2BACI,MAAO,KAEX,0BACI,KAAM","file":"jquery.multiscroll.min.css","sourceRoot":"/source/","sourcesContent":["/*!\r\n * multiscroll.js 0.1.7 Beta\r\n * https://github.com/alvarotrigo/multiscroll.js\r\n * @license MIT licensed\r\n *\r\n * Copyright (C) 2016 alvarotrigo.com - A project by Alvaro Trigo\r\n */\r\nhtml, body {\r\n    margin: 0;\r\n    padding: 0;\r\n\toverflow:hidden;\r\n\t-webkit-tap-highlight-color: rgba(0,0,0,0);\r\n}\r\n.ms-section {\r\n    position: relative;\r\n    -webkit-box-sizing: border-box;\r\n    -moz-box-sizing: border-box;\r\n    box-sizing: border-box;\r\n}\r\n.ms-section.ms-table{\r\n    display: table;\r\n    width: 100%;\r\n}\r\n.ms-tableCell {\r\n    display: table-cell;\r\n    vertical-align: middle;\r\n    width: 100%;\r\n    height: 100%;\r\n}\r\n.ms-easing {\r\n    -webkit-transition: all 0.7s ease-out;\r\n    -moz-transition: all 0.7s ease-out;\r\n    -o-transition: all 0.7s ease-out;\r\n    transition: all 0.7s ease-out;\r\n}\r\n#multiscroll-nav {\r\n    position: fixed;\r\n    z-index: 100;\r\n    margin-top: -32px;\r\n    top: 50%;\r\n    opacity: 1;\r\n}\r\n#multiscroll-nav.right {\r\n    right: 17px;\r\n}\r\n#multiscroll-nav.left {\r\n    left: 17px;\r\n}\r\n#multiscroll-nav ul{\r\n  margin: 0;\r\n  padding: 0;\r\n}\r\n#multiscroll-nav li{\r\n    display: block;\r\n    width: 14px;\r\n    height: 13px;\r\n    margin: 7px;\r\n    position:relative;\r\n}\r\n#multiscroll-nav li a{\r\n    display: block;\r\n    position: relative;\r\n    z-index: 1;\r\n    width: 100%;\r\n    height: 100%;\r\n    cursor: pointer;\r\n    text-decoration: none;\r\n}\r\n#multiscroll-nav li .active span{\r\n    background: #333;\r\n}\r\n#multiscroll-nav span{\r\n    top: 2px;\r\n    left: 2px;\r\n    width: 8px;\r\n    height: 8px;\r\n    border: 1px solid #000;\r\n    background: rgba(0, 0, 0, 0);\r\n    -webkit-border-radius: 50%;\r\n    -moz-border-radius: 50%;\r\n    border-radius: 50%;\r\n    position: absolute;\r\n    z-index: 1;\r\n}\r\n.multiscroll-tooltip {\r\n    position: absolute;\r\n    color: #fff;\r\n    font-size: 14px;\r\n    font-family: arial, helvetica, sans-serif;\r\n    top: -2px;\r\n    white-space: nowrap;\r\n    max-width: 220px;\r\n}\r\n.multiscroll-tooltip.right {\r\n    right: 20px;\r\n}\r\n.multiscroll-tooltip.left {\r\n    left: 20px;\r\n}\r\n"]}
\ No newline at end of file
diff --git a/dist/jquery.multiscroll.min.js b/dist/jquery.multiscroll.min.js
index 65f7c92..51e1576 100644
--- a/dist/jquery.multiscroll.min.js
+++ b/dist/jquery.multiscroll.min.js
@@ -1,8 +1,9 @@
-/*!
- * multiscroll.js 0.1.7 Beta
- * https://github.com/alvarotrigo/multiscroll.js
- * MIT licensed
- *
- * Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo
+/*!
+ * multiscroll.js 0.1.7 Beta
+ * https://github.com/alvarotrigo/multiscroll.js
+ * @license MIT licensed
+ *
+ * Copyright (C) 2016 alvarotrigo.com - A project by Alvaro Trigo
  */
-!function(e,t,n,o,i){e.fn.multiscroll=function(s){function a(){var n=t.location.hash.replace("#",""),o=n;if(o.length){var i=e(".ms-left").find('[data-anchor="'+o+'"]'),s="undefined"==typeof lastScrolledDestiny;(s||o!==lastScrolledDestiny)&&f(i)}}function l(t){clearTimeout(U);var o=e(n.activeElement);if(!o.is("textarea")&&!o.is("input")&&!o.is("select")&&s.keyboardScrolling){var i=t.which,a=[40,38,32,33,34];e.inArray(i,a)>-1&&t.preventDefault(),U=setTimeout(function(){r(t)},150)}}function r(t){var n=t.shiftKey;switch(t.which){case 38:case 33:B.moveSectionUp();break;case 32:if(n){B.moveSectionUp();break}case 40:case 34:B.moveSectionDown();break;case 36:B.moveTo(1);break;case 35:B.moveTo(e(".ms-left .ms-section").length);break;default:return}}function c(){I=e(t).height(),e(".ms-tableCell").each(function(){e(this).css({height:T(e(this).parent())})}),m(),e.isFunction(s.afterResize)&&s.afterResize.call(this)}function m(){s.css3?(h(e(".ms-left"),"translate3d(0px, -"+e(".ms-left").find(".ms-section.active").position().top+"px, 0px)",!1),h(e(".ms-right"),"translate3d(0px, -"+e(".ms-right").find(".ms-section.active").position().top+"px, 0px)",!1)):(e(".ms-left").css("top",-e(".ms-left").find(".ms-section.active").position().top),e(".ms-right").css("top",-e(".ms-right").find(".ms-section.active").position().top))}function f(t){var n=t.index(),o=e(".ms-right").find(".ms-section").eq(X-1-n),i=t.data("anchor"),a=e(".ms-left .ms-section.active"),l=a.index()+1,r=y(t);q=!0;var c={left:t.position().top,right:o.position().top};if(o.addClass("active").siblings().removeClass("active"),t.addClass("active").siblings().removeClass("active"),x(i),s.css3){e.isFunction(s.onLeave)&&s.onLeave.call(this,l,n+1,r);var m="translate3d(0px, -"+c.left+"px, 0px)",f="translate3d(0px, -"+c.right+"px, 0px)";h(e(".ms-left"),m,!0),h(e(".ms-right"),f,!0),setTimeout(function(){e.isFunction(s.afterLoad)&&s.afterLoad.call(this,i,n+1),setTimeout(function(){q=!1},R)},s.scrollingSpeed)}else e.isFunction(s.onLeave)&&s.onLeave.call(this,l,n+1,r),e(".ms-left").animate({top:-c.left},s.scrollingSpeed,s.easing,function(){e.isFunction(s.afterLoad)&&s.afterLoad.call(this,i,n+1),setTimeout(function(){q=!1},R)}),e(".ms-right").animate({top:-c.right},s.scrollingSpeed,s.easing);lastScrolledDestiny=i,S(i),g(i,n)}function d(){n.addEventListener?(n.removeEventListener("mousewheel",v,!1),n.removeEventListener("wheel",v,!1)):n.detachEvent("onmousewheel",v)}function u(){n.addEventListener?(n.addEventListener("mousewheel",v,!1),n.addEventListener("wheel",v,!1)):n.attachEvent("onmousewheel",v)}function v(e){e=t.event||e;var n=o.max(-1,o.min(1,e.wheelDelta||-e.deltaY||-e.detail));return q||(0>n?B.moveSectionDown():B.moveSectionUp()),!1}function h(e,t,n){e.toggleClass("ms-easing",n),e.css(p(t))}function p(e){return{"-webkit-transform":e,"-moz-transform":e,"-ms-transform":e,transform:e}}function g(t,n){s.navigation&&(e("#multiscroll-nav").find(".active").removeClass("active"),t?e("#multiscroll-nav").find('a[href="#'+t+'"]').addClass("active"):e("#multiscroll-nav").find("li").eq(n).find("a").addClass("active"))}function S(t){s.menu&&(e(s.menu).find(".active").removeClass("active"),e(s.menu).find('[data-menuanchor="'+t+'"]').addClass("active"))}function y(t){var n=e(".ms-left .ms-section.active").index(),o=t.index();return n>o?"up":"down"}function x(e){s.anchors.length&&(location.hash=e),b()}function b(){var t=e(".ms-left .ms-section.active"),n=t.data("anchor"),o=t.index(),i=String(o);s.anchors.length&&(i=n),i=i.replace("/","-").replace("#","");var a=new RegExp("\\b\\s?ms-viewing-[^\\s]+\\b","g");e("body")[0].className=e("body")[0].className.replace(a,""),e("body").addClass("ms-viewing-"+i)}function w(){var e,o=n.createElement("p"),s={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};n.body.insertBefore(o,null);for(var a in s)o.style[a]!==i&&(o.style[a]="translate3d(1px,1px,1px)",e=t.getComputedStyle(o).getPropertyValue(s[a]));return n.body.removeChild(o),e!==i&&e.length>0&&"none"!==e}function C(e){e.addClass("ms-table").wrapInner('<div class="ms-tableCell" style="height: '+T(e)+'px" />')}function T(e){var t=I;if(s.paddingTop||s.paddingBottom){var n=parseInt(e.css("padding-top"))+parseInt(e.css("padding-bottom"));t=I-n}return t}function E(){var n=t.location.hash.replace("#",""),o=e('.ms-left .ms-section[data-anchor="'+n+'"]');n.length&&f(o)}function k(n){var i=n.originalEvent;if(L(i)){n.preventDefault();e(".ms-left .ms-section.active");if(!q){var a=z(i);N=a.y,O=a.x,o.abs(W-N)>e(t).height()/100*s.touchSensitivity&&(W>N?B.moveSectionDown():N>W&&B.moveSectionUp())}}}function L(e){return"undefined"==typeof e.pointerType||"mouse"!=e.pointerType}function M(e){var t=e.originalEvent;if(L(t)){var n=z(t);W=n.y,K=n.x}}function P(){Y&&(MSPointer=D(),e(n).off("touchstart "+MSPointer.down).on("touchstart "+MSPointer.down,M),e(n).off("touchmove "+MSPointer.move).on("touchmove "+MSPointer.move,k))}function D(){var e;return e=t.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function z(e){var t=[];return t.y="undefined"!=typeof e.pageY&&(e.pageY||e.pageX)?e.pageY:e.touches[0].pageY,t.x="undefined"!=typeof e.pageX&&(e.pageY||e.pageX)?e.pageX:e.touches[0].pageX,Y&&L(e)&&(t.y=e.touches[0].pageY,t.x=e.touches[0].pageX),t}var B=e.fn.multiscroll;s=e.extend({verticalCentered:!0,scrollingSpeed:700,easing:"easeInQuart",menu:!1,sectionsColor:[],anchors:[],navigation:!1,navigationPosition:"right",navigationColor:"#000",navigationTooltips:[],loopBottom:!1,loopTop:!1,css3:!1,paddingTop:0,paddingBottom:0,fixedElements:null,normalScrollElements:null,keyboardScrolling:!0,touchSensitivity:5,sectionSelector:".ms-section",leftSelector:".ms-left",rightSelector:".ms-right",afterLoad:null,onLeave:null,afterRender:null,afterResize:null},s);var R=600,Y="ontouchstart"in t||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints;".ms-right"!==s.rightSelector&&e(s.rightSelector).addClass("ms-right"),".ms-left"!==s.leftSelector&&e(s.leftSelector).addClass("ms-left");var F,X=e(".ms-left").find(".ms-section").length,q=!1,I=e(t).height();u(),P(),s.css3&&(s.css3=w()),e("html, body").css({overflow:"hidden",height:"100%"}),".ms-section"!==s.sectionSelector&&e(s.sectionSelector).each(function(){e(this).addClass("ms-section")}),s.navigation&&(e("body").append('<div id="multiscroll-nav"><ul></ul></div>'),F=e("#multiscroll-nav"),F.css("color",s.navigationColor),F.addClass(s.navigationPosition)),e(".ms-right, .ms-left").css({width:"50%",position:"absolute",height:"100%","-ms-touch-action":"none"}),e(".ms-right").css({right:"1px",top:"0","-ms-touch-action":"none","touch-action":"none"}),e(".ms-left").css({left:"0",top:"0","-ms-touch-action":"none","touch-action":"none"}),e(".ms-left .ms-section, .ms-right .ms-section").each(function(){var t=e(this).index();if((s.paddingTop||s.paddingBottom)&&e(this).css("padding",s.paddingTop+" 0 "+s.paddingBottom+" 0"),"undefined"!=typeof s.sectionsColor[t]&&e(this).css("background-color",s.sectionsColor[t]),"undefined"!=typeof s.anchors[t]&&e(this).attr("data-anchor",s.anchors[t]),s.verticalCentered&&C(e(this)),e(this).closest(".ms-left").length&&s.navigation){var n="";s.anchors.length&&(n=s.anchors[t]);var o=s.navigationTooltips[t];"undefined"==typeof o&&(o=""),s.navigation&&F.find("ul").append('<li data-tooltip="'+o+'"><a href="#'+n+'"><span></span></a></li>')}}),e(".ms-right").html(e(".ms-right").find(".ms-section").get().reverse()),e(".ms-left .ms-section, .ms-right .ms-section").each(function(){var t=e(this).index();e(this).css({height:"100%"}),!t&&s.navigation&&F.find("li").eq(t).find("a").addClass("active")}).promise().done(function(){e(".ms-left .ms-section.active").length||(e(".ms-right").find(".ms-section").last().addClass("active"),e(".ms-left").find(".ms-section").first().addClass("active")),s.navigation&&F.css("margin-top","-"+F.height()/2+"px"),e.isFunction(s.afterRender)&&s.afterRender.call(this),m(),b(),e(t).on("load",function(){E()})}),e(t).on("hashchange",a),e(n).keydown(l);var U;e(n).mousedown(function(e){return 1==e.button?(e.preventDefault(),!1):void 0}),e(n).on("click","#multiscroll-nav a",function(t){t.preventDefault();var n=e(this).parent().index();f(e(".ms-left .ms-section").eq(n))}),e(n).on({mouseenter:function(){var t=e(this).data("tooltip");e('<div class="multiscroll-tooltip '+s.navigationPosition+'">'+t+"</div>").hide().appendTo(e(this)).fadeIn(200)},mouseleave:function(){e(this).find(".multiscroll-tooltip").fadeOut(200,function(){e(this).remove()})}},"#multiscroll-nav li"),s.normalScrollElements&&(e(n).on("mouseenter",s.normalScrollElements,function(){B.setMouseWheelScrolling(!1)}),e(n).on("mouseleave",s.normalScrollElements,function(){B.setMouseWheelScrolling(!0)})),e(t).on("resize",c),B.moveSectionUp=function(){var t=e(".ms-left .ms-section.active").prev(".ms-section");!t.length&&s.loopTop&&(t=e(".ms-left .ms-section").last()),t.length&&f(t)},B.moveSectionDown=function(){var t=e(".ms-left .ms-section.active").next(".ms-section");!t.length&&s.loopBottom&&(t=e(".ms-left .ms-section").first()),t.length&&f(t)},B.moveTo=function(t){var n="";n=isNaN(t)?e('.ms-left [data-anchor="'+t+'"]'):e(".ms-left .ms-section").eq(t-1),f(n)},B.setKeyboardScrolling=function(e){s.keyboardScrolling=e},B.setMouseWheelScrolling=function(e){e?u():d()},B.setScrollingSpeed=function(e){s.scrollingSpeed=e};var W=0,K=0,N=0,O=0;B.destroy=function(){B.setKeyboardScrolling(!1),B.setMouseWheelScrolling(!1),e(t).off("hashchange",a).off("resize",c),e(n).off("mouseenter","#multiscroll-nav li").off("mouseleave","#multiscroll-nav li").off("click","#multiscroll-nav a")},B.build=function(){B.setKeyboardScrolling(!0),B.setMouseWheelScrolling(!0),e(t).on("hashchange",a).on("resize",c),e(n).on("mouseenter","#multiscroll-nav li").on("mouseleave","#multiscroll-nav li").on("click","#multiscroll-nav a")}}}(jQuery,window,document,Math);
\ No newline at end of file
+!function(e,t,n,o,i){e.fn.multiscroll=function(s){function a(){var n=t.location.hash.replace("#",""),o=n;if(o.length){var i=e(".ms-left").find('[data-anchor="'+o+'"]'),s="undefined"==typeof lastScrolledDestiny;(s||o!==lastScrolledDestiny)&&f(i)}}function l(t){clearTimeout(U);var o=e(n.activeElement);if(!o.is("textarea")&&!o.is("input")&&!o.is("select")&&s.keyboardScrolling){var i=t.which,a=[40,38,32,33,34];e.inArray(i,a)>-1&&t.preventDefault(),U=setTimeout(function(){r(t)},150)}}function r(t){var n=t.shiftKey;switch(t.which){case 38:case 33:B.moveSectionUp();break;case 32:if(n){B.moveSectionUp();break}case 40:case 34:B.moveSectionDown();break;case 36:B.moveTo(1);break;case 35:B.moveTo(e(".ms-left .ms-section").length);break;default:return}}function c(){I=e(t).height(),e(".ms-tableCell").each(function(){e(this).css({height:T(e(this).parent())})}),m(),e.isFunction(s.afterResize)&&s.afterResize.call(this)}function m(){s.css3?(v(e(".ms-left"),"translate3d(0px, -"+e(".ms-left").find(".ms-section.active").position().top+"px, 0px)",!1),v(e(".ms-right"),"translate3d(0px, -"+e(".ms-right").find(".ms-section.active").position().top+"px, 0px)",!1)):(e(".ms-left").css("top",-e(".ms-left").find(".ms-section.active").position().top),e(".ms-right").css("top",-e(".ms-right").find(".ms-section.active").position().top))}function f(t){var n=t.index(),o=e(".ms-right").find(".ms-section").eq(X-1-n),i=t.data("anchor"),a=e(".ms-left .ms-section.active"),l=a.index()+1,r=y(t);q=!0;var c={left:t.position().top,right:o.position().top};if(o.addClass("active").siblings().removeClass("active"),t.addClass("active").siblings().removeClass("active"),x(i),s.css3){e.isFunction(s.onLeave)&&s.onLeave.call(this,l,n+1,r);var m="translate3d(0px, -"+c.left+"px, 0px)",f="translate3d(0px, -"+c.right+"px, 0px)";v(e(".ms-left"),m,!0),v(e(".ms-right"),f,!0),setTimeout(function(){e.isFunction(s.afterLoad)&&s.afterLoad.call(this,i,n+1),setTimeout(function(){q=!1},R)},s.scrollingSpeed)}else e.isFunction(s.onLeave)&&s.onLeave.call(this,l,n+1,r),e(".ms-left").animate({top:-c.left},s.scrollingSpeed,s.easing,function(){e.isFunction(s.afterLoad)&&s.afterLoad.call(this,i,n+1),setTimeout(function(){q=!1},R)}),e(".ms-right").animate({top:-c.right},s.scrollingSpeed,s.easing);lastScrolledDestiny=i,S(i),g(i,n)}function d(){n.addEventListener?(n.removeEventListener("mousewheel",h,!1),n.removeEventListener("wheel",h,!1)):n.detachEvent("onmousewheel",h)}function u(){n.addEventListener?(n.addEventListener("mousewheel",h,!1),n.addEventListener("wheel",h,!1)):n.attachEvent("onmousewheel",h)}function h(e){e=t.event||e;var n=o.max(-1,o.min(1,e.wheelDelta||-e.deltaY||-e.detail));return q||(n<0?B.moveSectionDown():B.moveSectionUp()),!1}function v(e,t,n){e.toggleClass("ms-easing",n),e.css(p(t))}function p(e){return{"-webkit-transform":e,"-moz-transform":e,"-ms-transform":e,transform:e}}function g(t,n){s.navigation&&(e("#multiscroll-nav").find(".active").removeClass("active"),t?e("#multiscroll-nav").find('a[href="#'+t+'"]').addClass("active"):e("#multiscroll-nav").find("li").eq(n).find("a").addClass("active"))}function S(t){s.menu&&(e(s.menu).find(".active").removeClass("active"),e(s.menu).find('[data-menuanchor="'+t+'"]').addClass("active"))}function y(t){var n=e(".ms-left .ms-section.active").index(),o=t.index();return n>o?"up":"down"}function x(e){s.anchors.length&&(location.hash=e),b()}function b(){var t=e(".ms-left .ms-section.active"),n=t.data("anchor"),o=t.index(),i=String(o);s.anchors.length&&(i=n),i=i.replace("/","-").replace("#","");var a=new RegExp("\\b\\s?ms-viewing-[^\\s]+\\b","g");e("body")[0].className=e("body")[0].className.replace(a,""),e("body").addClass("ms-viewing-"+i)}function w(){var e,o=n.createElement("p"),s={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};n.body.insertBefore(o,null);for(var a in s)o.style[a]!==i&&(o.style[a]="translate3d(1px,1px,1px)",e=t.getComputedStyle(o).getPropertyValue(s[a]));return n.body.removeChild(o),e!==i&&e.length>0&&"none"!==e}function C(e){e.addClass("ms-table").wrapInner('<div class="ms-tableCell" style="height: '+T(e)+'px" />')}function T(e){var t=I;if(s.paddingTop||s.paddingBottom){var n=parseInt(e.css("padding-top"))+parseInt(e.css("padding-bottom"));t=I-n}return t}function E(){var n=t.location.hash.replace("#",""),o=e('.ms-left .ms-section[data-anchor="'+n+'"]');n.length&&f(o)}function k(n){var i=n.originalEvent;if(L(i)){n.preventDefault();e(".ms-left .ms-section.active");if(!q){var a=z(i);N=a.y,O=a.x,o.abs(W-N)>e(t).height()/100*s.touchSensitivity&&(W>N?B.moveSectionDown():N>W&&B.moveSectionUp())}}}function L(e){return"undefined"==typeof e.pointerType||"mouse"!=e.pointerType}function M(e){var t=e.originalEvent;if(L(t)){var n=z(t);W=n.y,K=n.x}}function P(){Y&&(MSPointer=D(),e(n).off("touchstart "+MSPointer.down).on("touchstart "+MSPointer.down,M),e(n).off("touchmove "+MSPointer.move).on("touchmove "+MSPointer.move,k))}function D(){var e;return e=t.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function z(e){var t=[];return t.y="undefined"!=typeof e.pageY&&(e.pageY||e.pageX)?e.pageY:e.touches[0].pageY,t.x="undefined"!=typeof e.pageX&&(e.pageY||e.pageX)?e.pageX:e.touches[0].pageX,Y&&L(e)&&(t.y=e.touches[0].pageY,t.x=e.touches[0].pageX),t}var B=e.fn.multiscroll;s=e.extend({verticalCentered:!0,scrollingSpeed:700,easing:"easeInQuart",menu:!1,sectionsColor:[],anchors:[],navigation:!1,navigationPosition:"right",navigationColor:"#000",navigationTooltips:[],loopBottom:!1,loopTop:!1,css3:!1,paddingTop:0,paddingBottom:0,fixedElements:null,normalScrollElements:null,keyboardScrolling:!0,touchSensitivity:5,sectionSelector:".ms-section",leftSelector:".ms-left",rightSelector:".ms-right",afterLoad:null,onLeave:null,afterRender:null,afterResize:null},s);var R=600,Y="ontouchstart"in t||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints;".ms-right"!==s.rightSelector&&e(s.rightSelector).addClass("ms-right"),".ms-left"!==s.leftSelector&&e(s.leftSelector).addClass("ms-left");var F,X=e(".ms-left").find(".ms-section").length,q=!1,I=e(t).height();u(),P(),s.css3&&(s.css3=w()),e("html, body").css({overflow:"hidden",height:"100%"}),".ms-section"!==s.sectionSelector&&e(s.sectionSelector).each(function(){e(this).addClass("ms-section")}),s.navigation&&(e("body").append('<div id="multiscroll-nav"><ul></ul></div>'),F=e("#multiscroll-nav"),F.css("color",s.navigationColor),F.addClass(s.navigationPosition)),e(".ms-right, .ms-left").css({width:"50%",position:"absolute",height:"100%","-ms-touch-action":"none"}),e(".ms-right").css({right:"1px",top:"0","-ms-touch-action":"none","touch-action":"none"}),e(".ms-left").css({left:"0",top:"0","-ms-touch-action":"none","touch-action":"none"}),e(".ms-left .ms-section, .ms-right .ms-section").each(function(){var t=e(this).index();if((s.paddingTop||s.paddingBottom)&&e(this).css("padding",s.paddingTop+" 0 "+s.paddingBottom+" 0"),"undefined"!=typeof s.sectionsColor[t]&&e(this).css("background-color",s.sectionsColor[t]),"undefined"!=typeof s.anchors[t]&&e(this).attr("data-anchor",s.anchors[t]),s.verticalCentered&&C(e(this)),e(this).closest(".ms-left").length&&s.navigation){var n="";s.anchors.length&&(n=s.anchors[t]);var o=s.navigationTooltips[t];"undefined"==typeof o&&(o=""),s.navigation&&F.find("ul").append('<li data-tooltip="'+o+'"><a href="#'+n+'"><span></span></a></li>')}}),e(".ms-right").html(e(".ms-right").find(".ms-section").get().reverse()),e(".ms-left .ms-section, .ms-right .ms-section").each(function(){var t=e(this).index();e(this).css({height:"100%"}),!t&&s.navigation&&F.find("li").eq(t).find("a").addClass("active")}).promise().done(function(){e(".ms-left .ms-section.active").length||(e(".ms-right").find(".ms-section").last().addClass("active"),e(".ms-left").find(".ms-section").first().addClass("active")),s.navigation&&F.css("margin-top","-"+F.height()/2+"px"),e.isFunction(s.afterRender)&&s.afterRender.call(this),m(),b(),e(t).on("load",function(){E()})}),e(t).on("hashchange",a),e(n).keydown(l);var U;e(n).mousedown(function(e){if(1==e.button)return e.preventDefault(),!1}),e(n).on("click","#multiscroll-nav a",function(t){t.preventDefault();var n=e(this).parent().index();f(e(".ms-left .ms-section").eq(n))}),e(n).on({mouseenter:function(){var t=e(this).data("tooltip");e('<div class="multiscroll-tooltip '+s.navigationPosition+'">'+t+"</div>").hide().appendTo(e(this)).fadeIn(200)},mouseleave:function(){e(this).find(".multiscroll-tooltip").fadeOut(200,function(){e(this).remove()})}},"#multiscroll-nav li"),s.normalScrollElements&&(e(n).on("mouseenter",s.normalScrollElements,function(){B.setMouseWheelScrolling(!1)}),e(n).on("mouseleave",s.normalScrollElements,function(){B.setMouseWheelScrolling(!0)})),e(t).on("resize",c),B.moveSectionUp=function(){var t=e(".ms-left .ms-section.active").prev(".ms-section");!t.length&&s.loopTop&&(t=e(".ms-left .ms-section").last()),t.length&&f(t)},B.moveSectionDown=function(){var t=e(".ms-left .ms-section.active").next(".ms-section");!t.length&&s.loopBottom&&(t=e(".ms-left .ms-section").first()),t.length&&f(t)},B.moveTo=function(t){var n="";n=isNaN(t)?e('.ms-left [data-anchor="'+t+'"]'):e(".ms-left .ms-section").eq(t-1),f(n)},B.setKeyboardScrolling=function(e){s.keyboardScrolling=e},B.setMouseWheelScrolling=function(e){e?u():d()},B.setScrollingSpeed=function(e){s.scrollingSpeed=e};var W=0,K=0,N=0,O=0;B.destroy=function(){B.setKeyboardScrolling(!1),B.setMouseWheelScrolling(!1),e(t).off("hashchange",a).off("resize",c),e(n).off("mouseenter","#multiscroll-nav li").off("mouseleave","#multiscroll-nav li").off("click","#multiscroll-nav a")},B.build=function(){B.setKeyboardScrolling(!0),B.setMouseWheelScrolling(!0),e(t).on("hashchange",a).on("resize",c),e(n).on("mouseenter","#multiscroll-nav li").on("mouseleave","#multiscroll-nav li").on("click","#multiscroll-nav a")}}}(jQuery,window,document,Math);
+//# sourceMappingURL=jquery.multiscroll.min.js.map
diff --git a/dist/jquery.multiscroll.min.js.map b/dist/jquery.multiscroll.min.js.map
new file mode 100644
index 0000000..3d55139
--- /dev/null
+++ b/dist/jquery.multiscroll.min.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["jquery.multiscroll.js"],"names":["$","window","document","Math","undefined","fn","multiscroll","options","hashChangeHandler","value","location","hash","replace","sectionAnchor","length","section","find","isFirstScrollMove","lastScrolledDestiny","scrollPage","keydownHandler","e","clearTimeout","keydownId","activeElement","is","keyboardScrolling","keyCode","which","keyControls","inArray","preventDefault","setTimeout","onkeydown","shiftPressed","shiftKey","MS","moveSectionUp","moveSectionDown","moveTo","doneResizing","windowHeight","height","each","this","css","getTableHeight","parent","silentScroll","isFunction","afterResize","call","css3","transformContainer","position","top","leftDestination","leftDestinationIndex","index","rightDestination","eq","numberSections","anchorLink","data","activeSection","leavingSection","yMovement","getYmovement","isMoving","topPos","left","right","addClass","siblings","removeClass","setURLHash","onLeave","translate3dLeft","translate3dRight","afterLoad","scrollDelay","scrollingSpeed","animate","easing","activateMenuElement","activateNavDots","removeMouseWheelHandler","addEventListener","removeEventListener","MouseWheelHandler","detachEvent","addMouseWheelHandler","attachEvent","event","delta","max","min","wheelDelta","deltaY","detail","container","translate3d","animated","toggleClass","getTransforms","-webkit-transform","-moz-transform","-ms-transform","transform","name","sectionIndex","navigation","menu","destiny","fromIndex","toIndex","anchors","setBodyClass","text","String","classRe","RegExp","className","support3d","has3d","el","createElement","transforms","webkitTransform","OTransform","msTransform","MozTransform","body","insertBefore","t","style","getComputedStyle","getPropertyValue","removeChild","addTableClass","element","wrapInner","sectionHeight","paddingTop","paddingBottom","paddings","parseInt","scrollToAnchor","touchMoveHandler","originalEvent","isReallyTouch","touchEvents","getEventsPage","touchEndY","touchEndX","abs","touchStartY","touchSensitivity","pointerType","touchStartHandler","touchStartX","addTouchHandler","isTouch","MSPointer","getMSPointer","off","down","on","move","pointer","PointerEvent","events","y","pageY","pageX","touches","x","extend","verticalCentered","sectionsColor","navigationPosition","navigationColor","navigationTooltips","loopBottom","loopTop","fixedElements","normalScrollElements","sectionSelector","leftSelector","rightSelector","afterRender","navigator","msMaxTouchPoints","nav","overflow","append","width","-ms-touch-action","touch-action","attr","closest","link","tooltip","html","get","reverse","promise","done","last","first","keydown","mousedown","button","mouseenter","hide","appendTo","fadeIn","mouseleave","fadeOut","remove","setMouseWheelScrolling","prev","next","isNaN","setKeyboardScrolling","setScrollingSpeed","destroy","build","jQuery"],"mappings":";;;;;;;CAOA,SAAUA,EAAGC,EAAQC,EAAUC,EAAMC,GAEpCJ,EAAEK,GAAGC,YAAc,SAASC,GA8L3B,QAASC,KACR,GAAIC,GAASR,EAAOS,SAASC,KAAKC,QAAQ,IAAK,IAC3CC,EAAgBJ,CAEpB,IAAGI,EAAcC,OAAO,CACvB,GAAIC,GAAUf,EAAE,YAAYgB,KAAK,iBAAiBH,EAAc,MAE5DI,EAAoD,mBAAxBC,sBAE5BD,GAAqBJ,IAAkBK,sBAC1CC,EAAWJ,IAad,QAASK,GAAeC,GACvBC,aAAaC,EAEb,IAAIC,GAAgBxB,EAAEE,EAASsB,cAE/B,KAAIA,EAAcC,GAAG,cAAgBD,EAAcC,GAAG,WAAaD,EAAcC,GAAG,WACnFlB,EAAQmB,kBAAkB,CAC1B,GAAIC,GAAUN,EAAEO,MAGZC,GAAe,GAAI,GAAI,GAAI,GAAI,GAChC7B,GAAE8B,QAAQH,EAASE,OACrBR,EAAEU,iBAGHR,EAAYS,WAAW,WACtBC,EAAUZ,IACT,MAOJ,QAASY,GAAUZ,GAClB,GAAIa,GAAeb,EAAEc,QAErB,QAAQd,EAAEO,OAET,IAAK,IACL,IAAK,IACJQ,EAAGC,eACH,MAGD,KAAK,IACJ,GAAGH,EAAa,CACfE,EAAGC,eACH,OAEF,IAAK,IACL,IAAK,IACJD,EAAGE,iBACH,MAGD,KAAK,IACJF,EAAGG,OAAO,EACV,MAGD,KAAK,IACJH,EAAGG,OA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GACnCF,EAAQmB,kBAAoBjB,GAM7B2B,EAAGwL,uBAAyB,SAAUnN,GAClCA,EACFkF,IAEAL,KAOFlD,EAAG6L,kBAAoB,SAASxN,GAC/BF,EAAQ0E,eAAiBxE,EAK1B,IAAImJ,GAAc,EACdI,EAAc,EACdP,EAAY,EACZC,EAAY,CAiIhBtH,GAAG8L,QAAU,WACZ9L,EAAG4L,sBAAqB,GACxB5L,EAAGwL,wBAAuB,GAE1B5N,EAAEC,GACAoK,IAAI,aAAc7J,GAClB6J,IAAI,SAAU7H,GAEhBxC,EAAEE,GACAmK,IAAI,aAAc,uBAClBA,IAAI,aAAc,uBAClBA,IAAI,QAAS,uBAMhBjI,EAAG+L,MAAQ,WACV/L,EAAG4L,sBAAqB,GACxB5L,EAAGwL,wBAAuB,GAE1B5N,EAAEC,GACAsK,GAAG,aAAc/J,GACjB+J,GAAG,SAAU/H,GAEfxC,EAAEE,GACAqK,GAAG,aAAc,uBACjBA,GAAG,aAAc,uBACjBA,GAAG,QAAS,yBAId6D,OAAQnO,OAAQC,SAAUC","file":"jquery.multiscroll.min.js","sourcesContent":["/*!\r\n * multiscroll.js 0.1.7 Beta\r\n * https://github.com/alvarotrigo/multiscroll.js\r\n * @license MIT licensed\r\n *\r\n * Copyright (C) 2016 alvarotrigo.com - A project by Alvaro Trigo\r\n */\r\n(function($, window, document, Math, undefined) {\r\n\r\n\t$.fn.multiscroll = function(options) {\r\n\t\tvar MS = $.fn.multiscroll;\r\n\r\n\t\t// Create some defaults, extending them with any options that were provided\r\n\t\toptions = $.extend({\r\n\t\t\t'verticalCentered' : true,\r\n\t\t\t'scrollingSpeed': 700,\r\n\t\t\t'easing': 'easeInQuart',\r\n\t\t\t'menu': false,\r\n\t\t\t'sectionsColor': [],\r\n\t\t\t'anchors':[],\r\n\t\t\t'navigation': false,\r\n\t\t\t'navigationPosition': 'right',\r\n\t\t\t'navigationColor': '#000',\r\n\t\t\t'navigationTooltips': [],\r\n\t\t\t'loopBottom': false,\r\n\t\t\t'loopTop': false,\r\n\t\t\t'css3': false,\r\n\t\t\t'paddingTop': 0,\r\n\t\t\t'paddingBottom': 0,\r\n\t\t\t'fixedElements': null,\r\n\t\t\t'normalScrollElements': null,\r\n\t\t\t'keyboardScrolling': true,\r\n\t\t\t'touchSensitivity': 5,\r\n\r\n\t\t\t// Custom selectors\r\n\t\t\t'sectionSelector': '.ms-section',\r\n\t\t\t'leftSelector': '.ms-left',\r\n\t\t\t'rightSelector': '.ms-right',\r\n\r\n\t\t\t//events\r\n\t\t\t'afterLoad': null,\r\n\t\t\t'onLeave': null,\r\n\t\t\t'afterRender': null,\r\n\t\t\t'afterResize': null\r\n\t\t}, options);\r\n\r\n\t\t//Defines the delay to take place before being able to scroll to the next section\r\n\t\t//BE CAREFUL! Not recommened to change it under 400 for a good behavior in laptops and\r\n\t\t//Apple devices (laptops, mouses...)\r\n\t\tvar scrollDelay = 600;\r\n\r\n\t\tvar isTouch = (('ontouchstart' in window) || (navigator.msMaxTouchPoints > 0) || (navigator.maxTouchPoints));\r\n\r\n\t\t// adding class namef for right and left blocks\r\n\t\tif (options.rightSelector !== '.ms-right') {\r\n\t\t\t$(options.rightSelector).addClass('ms-right');\r\n\t\t}\r\n\r\n\t\tif (options.leftSelector !== '.ms-left') {\r\n\t\t\t$(options.leftSelector).addClass('ms-left');\r\n\t\t}\r\n\r\n\t\tvar numberSections = $('.ms-left').find('.ms-section').length;\r\n\t\tvar isMoving = false;\r\n\t\tvar nav;\r\n\t\tvar windowHeight = $(window).height();\r\n\r\n\r\n\t\taddMouseWheelHandler();\r\n\t\taddTouchHandler();\r\n\r\n\t\t//if css3 is not supported, it will use jQuery animations\r\n\t\tif(options.css3){\r\n\t\t\toptions.css3 = support3d();\r\n\t\t}\r\n\r\n\t\t$('html, body').css({\r\n\t\t\t'overflow' : 'hidden',\r\n\t\t\t'height' : '100%'\r\n\t\t});\r\n\r\n\t\t//adding class names to each sections\r\n\t\tif (options.sectionSelector !== '.ms-section') {\r\n\t\t\t$(options.sectionSelector).each(function(){\r\n\t\t\t\t$(this).addClass('ms-section');\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t//creating the navigation dots\r\n\t\tif (options.navigation) {\r\n\t\t\t$('body').append('<div id=\"multiscroll-nav\"><ul></ul></div>');\r\n\t\t\tnav = $('#multiscroll-nav');\r\n\r\n\t\t\tnav.css('color', options.navigationColor);\r\n\t\t\tnav.addClass(options.navigationPosition);\r\n\t\t}\r\n\r\n\t\t$('.ms-right, .ms-left').css({\r\n\t\t\t'width': '50%',\r\n\t\t\t'position': 'absolute',\r\n\t\t\t'height': '100%',\r\n\t\t\t'-ms-touch-action': 'none'\r\n\t\t});\r\n\r\n\t\t$('.ms-right').css({\r\n\t\t\t'right': '1px', //http://stackoverflow.com/questions/23675457/chrome-and-opera-creating-small-padding-when-using-displaytable\r\n\t\t\t'top': '0',\r\n\t\t\t'-ms-touch-action': 'none',\r\n\t\t\t'touch-action': 'none'\r\n\t\t});\r\n\r\n\t\t$('.ms-left').css({\r\n\t\t\t'left': '0',\r\n\t\t\t'top': '0',\r\n\t\t\t'-ms-touch-action': 'none',\r\n\t\t\t'touch-action': 'none'\r\n\t\t});\r\n\r\n\r\n\t\t$('.ms-left .ms-section, .ms-right .ms-section').each(function(){\r\n\t\t\tvar sectionIndex = $(this).index();\r\n\r\n\t\t\tif(options.paddingTop || options.paddingBottom){\r\n\t\t\t\t$(this).css('padding', options.paddingTop  + ' 0 ' + options.paddingBottom + ' 0');\r\n\t\t\t}\r\n\r\n\t\t\tif (typeof options.sectionsColor[sectionIndex] !==  'undefined') {\r\n\t\t\t\t$(this).css('background-color', options.sectionsColor[sectionIndex]);\r\n\t\t\t}\r\n\r\n\t\t\tif (typeof options.anchors[sectionIndex] !== 'undefined') {\r\n\t\t\t\t$(this).attr('data-anchor', options.anchors[sectionIndex]);\r\n\t\t\t}\r\n\r\n\t\t\tif(options.verticalCentered){\r\n\t\t\t\taddTableClass($(this));\r\n\t\t\t}\r\n\r\n\t\t\t//only for the left panel\r\n\t\t\tif($(this).closest('.ms-left').length && options.navigation) {\r\n\t\t\t\tvar link = '';\r\n\t\t\t\tif(options.anchors.length){\r\n\t\t\t\t\tlink = options.anchors[sectionIndex];\r\n\t\t\t\t}\r\n\t\t\t\tvar tooltip = options.navigationTooltips[sectionIndex];\r\n\t\t\t\tif(typeof tooltip === 'undefined'){\r\n\t\t\t\t\ttooltip = '';\r\n\t\t\t\t}\r\n\t\t\t\tif (options.navigation) {\r\n\t\t\t\t\tnav.find('ul').append('<li data-tooltip=\"' + tooltip + '\"><a href=\"#' + link + '\"><span></span></a></li>');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t//inverting the right panel\r\n\t\t$('.ms-right').html( $('.ms-right').find('.ms-section').get().reverse());\r\n\r\n\t\t$('.ms-left .ms-section, .ms-right .ms-section').each(function(){\r\n\t\t\tvar sectionIndex = $(this).index();\r\n\r\n\t\t\t$(this).css({\r\n\t\t\t\t'height': '100%'\r\n\t\t\t});\r\n\r\n\r\n\t\t\tif(!sectionIndex && options.navigation ){\r\n\t\t\t\t//activating the navigation bullet\r\n\t\t\t\tnav.find('li').eq(sectionIndex).find('a').addClass('active');\r\n\t\t\t}\r\n\t\t}).promise().done(function(){\r\n\r\n\t\t\t//if no active section is defined, the 1st one will be the default one\r\n\t\t\tif(!$('.ms-left .ms-section.active').length){\r\n\t\t\t\t$('.ms-right').find('.ms-section').last().addClass('active');\r\n\t\t\t\t$('.ms-left').find('.ms-section').first().addClass('active');\r\n\t\t\t}\r\n\r\n\t\t\t//vertical centered of the navigation + first bullet active\r\n\t\t\tif(options.navigation){\r\n\t\t\t\tnav.css('margin-top', '-' + (nav.height()/2) + 'px');\r\n\t\t\t}\r\n\t\t\t$.isFunction( options.afterRender ) && options.afterRender.call( this);\r\n\r\n\t\t\t//scrolling to the defined active section and adjusting right and left panels\r\n\t\t\tsilentScroll();\r\n\r\n\t\t\t//setting the class for the body element\r\n\t\t\tsetBodyClass();\r\n\r\n\t\t\t$(window).on('load', function() {\r\n\t\t\t\tscrollToAnchor();\r\n\t\t\t});\r\n\t\t});\r\n\r\n\r\n\t\t//detecting any change on the URL to scroll to the given anchor link\r\n\t\t//(a way to detect back history button as we play with the hashes on the URL)\r\n\t\t$(window).on('hashchange', hashChangeHandler);\r\n\r\n\t\tfunction hashChangeHandler(){\r\n\t\t\tvar value =  window.location.hash.replace('#', '');\r\n\t\t\tvar sectionAnchor = value;\r\n\r\n\t\t\tif(sectionAnchor.length){\r\n\t\t\t\tvar section = $('.ms-left').find('[data-anchor=\"'+sectionAnchor+'\"]');\r\n\r\n\t\t\t\tvar isFirstScrollMove = (typeof lastScrolledDestiny === 'undefined' );\r\n\r\n\t\t\t\tif (isFirstScrollMove || sectionAnchor !== lastScrolledDestiny){\r\n\t\t\t\t\tscrollPage(section);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\r\n\r\n\t\t/**\r\n\t\t* Sliding with arrow keys, both, vertical and horizontal\r\n\t\t*/\r\n\t\t$(document).keydown(keydownHandler);\r\n\r\n\r\n\t\tvar keydownId;\r\n\t\tfunction keydownHandler(e) {\r\n\t\t\tclearTimeout(keydownId);\r\n\r\n\t\t\tvar activeElement = $(document.activeElement);\r\n\r\n\t\t\tif(!activeElement.is('textarea') && !activeElement.is('input') && !activeElement.is('select') &&\r\n\t\t\t\toptions.keyboardScrolling){\r\n\t\t\t\tvar keyCode = e.which;\r\n\r\n\t\t\t\t//preventing the scroll with arrow keys & spacebar & Page Up & Down keys\r\n\t\t\t\tvar keyControls = [40, 38, 32, 33, 34];\r\n\t\t\t\tif($.inArray(keyCode, keyControls) > -1){\r\n\t\t\t\t\te.preventDefault();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tkeydownId = setTimeout(function(){\r\n\t\t\t\t\tonkeydown(e);\r\n\t\t\t\t},150);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Sliding with arrow keys, both, vertical and horizontal\r\n\t\t */\r\n\t\tfunction onkeydown(e){\r\n\t\t\tvar shiftPressed = e.shiftKey;\r\n\r\n\t\t\tswitch (e.which) {\r\n\t\t\t\t//up\r\n\t\t\t\tcase 38:\r\n\t\t\t\tcase 33:\r\n\t\t\t\t\tMS.moveSectionUp();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t//down\r\n\t\t\t\tcase 32: //spacebar\r\n\t\t\t\t\tif(shiftPressed){\r\n\t\t\t\t\t\tMS.moveSectionUp();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\tcase 40:\r\n\t\t\t\tcase 34:\r\n\t\t\t\t\tMS.moveSectionDown();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t//Home\r\n\t\t\t\tcase 36:\r\n\t\t\t\t\tMS.moveTo(1);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t//End\r\n\t\t\t\tcase 35:\r\n\t\t\t\t\tMS.moveTo( $('.ms-left .ms-section').length);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\treturn; // exit this handler for other keys\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Disabling any action when pressing of the mouse wheel (Chrome, IE, Opera, Safari)\r\n\t\t */\r\n\t\t$(document).mousedown(function(e) {\r\n\t\t\tif(e.button == 1){\r\n\t\t\t\te.preventDefault();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t//navigation action\r\n\t\t$(document).on('click', '#multiscroll-nav a', function(e){\r\n\t\t\te.preventDefault();\r\n\t\t\tvar index = $(this).parent().index();\r\n\t\t\tscrollPage($('.ms-left .ms-section').eq(index));\r\n\t\t});\r\n\r\n\t\t//navigation tooltips\r\n\t\t$(document).on({\r\n\t\t\tmouseenter: function(){\r\n\t\t\t\tvar tooltip = $(this).data('tooltip');\r\n\t\t\t\t$('<div class=\"multiscroll-tooltip ' + options.navigationPosition +'\">' + tooltip + '</div>').hide().appendTo($(this)).fadeIn(200);\r\n\t\t\t},\r\n\t\t\tmouseleave: function(){\r\n\t\t\t\t$(this).find('.multiscroll-tooltip').fadeOut(200, function() {\r\n\t\t\t\t\t$(this).remove();\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}, '#multiscroll-nav li');\r\n\r\n\r\n\t\tif(options.normalScrollElements){\r\n\t\t\t$(document).on('mouseenter', options.normalScrollElements, function () {\r\n\t\t\t\tMS.setMouseWheelScrolling(false);\r\n\t\t\t});\r\n\r\n\t\t\t$(document).on('mouseleave', options.normalScrollElements, function(){\r\n\t\t\t\tMS.setMouseWheelScrolling(true);\r\n\t\t\t});\r\n\t\t}\r\n\r\n\r\n\t\t//when resizing the site, we adjust the heights of the sections\r\n\t\t$(window).on('resize', doneResizing);\r\n\r\n\t\t/**\r\n\t\t * When resizing is finished, we adjust the slides sizes and positions\r\n\t\t */\r\n\t\tfunction doneResizing() {\r\n\t\t\twindowHeight = $(window).height();\r\n\t\t\t$('.ms-tableCell').each(function() {\r\n\t\t\t\t$(this).css({ height: getTableHeight($(this).parent()) });\r\n\t\t\t});\r\n\t\t\tsilentScroll();\r\n\t\t\t$.isFunction( options.afterResize ) && options.afterResize.call( this);\r\n\t\t}\r\n\r\n\t\tfunction silentScroll(){\r\n\t\t\t//moving the right section to the bottom\r\n\t\t\tif(options.css3){\r\n\t\t\t\ttransformContainer($('.ms-left'), 'translate3d(0px, -' + $('.ms-left').find('.ms-section.active').position().top + 'px, 0px)', false);\r\n\t\t\t\ttransformContainer($('.ms-right'), 'translate3d(0px, -' + $('.ms-right').find('.ms-section.active').position().top + 'px, 0px)', false);\r\n\t\t\t}else{\r\n\t\t\t\t$('.ms-left').css('top', -$('.ms-left').find('.ms-section.active').position().top );\r\n\t\t\t\t$('.ms-right').css('top', -$('.ms-right').find('.ms-section.active').position().top );\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tMS.moveSectionUp = function(){\r\n\t\t\tvar prev = $('.ms-left .ms-section.active').prev('.ms-section');\r\n\r\n\t\t\tif(!prev.length && options.loopTop){\r\n\t\t\t\tprev = $('.ms-left .ms-section').last();\r\n\t\t\t}\r\n\r\n\t\t\tif (prev.length) {\r\n\t\t\t\tscrollPage(prev);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tMS.moveSectionDown = function (){\r\n\t\t\tvar next = $('.ms-left .ms-section.active').next('.ms-section');\r\n\r\n\t\t\tif(!next.length && options.loopBottom ){\r\n\t\t\t\tnext = $('.ms-left .ms-section').first();\r\n\t\t\t}\r\n\r\n\t\t\tif(next.length){\r\n\t\t\t\tscrollPage(next);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tMS.moveTo = function (section){\r\n\t\t\tvar destiny = '';\r\n\r\n\t\t\tif(isNaN(section)){\r\n\t\t\t\tdestiny = $('.ms-left [data-anchor=\"'+section+'\"]');\r\n\t\t\t}else{\r\n\t\t\t\tdestiny = $('.ms-left .ms-section').eq( (section -1) );\r\n\t\t\t}\r\n\r\n\t\t\tscrollPage(destiny);\r\n\t\t};\r\n\r\n\t\tfunction scrollPage(leftDestination){\r\n\t\t\tvar leftDestinationIndex = leftDestination.index();\r\n\t\t\tvar rightDestination = $('.ms-right').find('.ms-section').eq( numberSections -1 - leftDestinationIndex);\r\n\t\t\tvar rightDestinationIndex = numberSections - 1 - leftDestinationIndex;\r\n\t\t\tvar anchorLink  = leftDestination.data('anchor');\r\n\t\t\tvar activeSection = $('.ms-left .ms-section.active');\r\n\t\t\tvar leavingSection = activeSection.index() + 1;\r\n\t\t\tvar yMovement = getYmovement(leftDestination);\r\n\r\n\t\t\t//preventing from activating the MouseWheelHandler event\r\n\t\t\t//more than once if the page is scrolling\r\n\t\t\tisMoving = true;\r\n\r\n\t\t\tvar topPos = {\r\n\t\t\t\t'left' : leftDestination.position().top,\r\n\t\t\t\t'right': rightDestination.position().top\r\n\t\t\t};\r\n\r\n\t\t\trightDestination.addClass('active').siblings().removeClass('active');\r\n\t\t\tleftDestination.addClass('active').siblings().removeClass('active');\r\n\r\n\t\t\tsetURLHash(anchorLink);\r\n\r\n\t\t\t// Use CSS3 translate functionality or...\r\n\t\t\tif (options.css3){\r\n\t\t\t\t//callback (onLeave)\r\n\t\t\t\t$.isFunction(options.onLeave) && options.onLeave.call(this, leavingSection, (leftDestinationIndex + 1), yMovement);\r\n\r\n\t\t\t\tvar translate3dLeft = 'translate3d(0px, -' + topPos['left'] + 'px, 0px)';\r\n\t\t\t\tvar translate3dRight = 'translate3d(0px, -' + topPos['right'] + 'px, 0px)';\r\n\r\n\t\t\t\ttransformContainer($('.ms-left'), translate3dLeft, true);\r\n\t\t\t\ttransformContainer($('.ms-right'), translate3dRight, true);\r\n\r\n\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\t//callback (afterLoad)\r\n\t\t\t\t\t$.isFunction(options.afterLoad) && options.afterLoad.call(this, anchorLink, (leftDestinationIndex + 1));\r\n\r\n\t\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\t\tisMoving = false;\r\n\t\t\t\t\t}, scrollDelay);\r\n\t\t\t\t}, options.scrollingSpeed);\r\n\t\t\t}else{\r\n\t\t\t\t//callback (onLeave)\r\n\t\t\t\t$.isFunction(options.onLeave) && options.onLeave.call(this, leavingSection, (leftDestinationIndex + 1), yMovement);\r\n\r\n\t\t\t\t$('.ms-left').animate({\r\n\t\t\t\t\t'top': -topPos['left']\r\n\t\t\t\t}, options.scrollingSpeed, options.easing, function(){\r\n\t\t\t\t\t$.isFunction(options.afterLoad) && options.afterLoad.call(this, anchorLink, (leftDestinationIndex + 1));\r\n\r\n\t\t\t\t\tsetTimeout(function () {\r\n\t\t\t\t\t\tisMoving = false;\r\n\t\t\t\t\t}, scrollDelay);\r\n\t\t\t\t});\r\n\r\n\t\t\t\t$('.ms-right').animate({\r\n\t\t\t\t\t'top': -topPos['right']\r\n\t\t\t\t}, options.scrollingSpeed, options.easing);\r\n\t\t\t}\r\n\r\n\t\t\t//flag to avoid callingn `scrollPage()` twice in case of using anchor links\r\n\t\t\tlastScrolledDestiny = anchorLink;\r\n\r\n\t\t\tactivateMenuElement(anchorLink);\r\n\t\t\tactivateNavDots(anchorLink, leftDestinationIndex);\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t* Removes the auto scrolling action fired by the mouse wheel and tackpad.\r\n\t\t* After this function is called, the mousewheel and trackpad movements won't scroll through sections.\r\n\t\t*/\r\n\t\tfunction removeMouseWheelHandler(){\r\n\t\t\tif (document.addEventListener) {\r\n\t\t\t\tdocument.removeEventListener('mousewheel', MouseWheelHandler, false); //IE9, Chrome, Safari, Oper\r\n\t\t\t\tdocument.removeEventListener('wheel', MouseWheelHandler, false); //Firefox\r\n\t\t\t} else {\r\n\t\t\t\tdocument.detachEvent(\"onmousewheel\", MouseWheelHandler); //IE 6/7/8\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t* Adds the auto scrolling action for the mouse wheel and tackpad.\r\n\t\t* After this function is called, the mousewheel and trackpad movements will scroll through sections\r\n\t\t*/\r\n\t\tfunction addMouseWheelHandler(){\r\n\t\t\tif (document.addEventListener) {\r\n\t\t\t\tdocument.addEventListener(\"mousewheel\", MouseWheelHandler, false); //IE9, Chrome, Safari, Oper\r\n\t\t\t\tdocument.addEventListener(\"wheel\", MouseWheelHandler, false); //Firefox\r\n\t\t\t} else {\r\n\t\t\t\tdocument.attachEvent(\"onmousewheel\", MouseWheelHandler); //IE 6/7/8\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Detecting mousewheel scrolling\r\n\t\t *\r\n\t\t * http://blogs.sitepointstatic.com/examples/tech/mouse-wheel/index.html\r\n\t\t * http://www.sitepoint.com/html5-javascript-mouse-wheel/\r\n\t\t */\r\n\t\tfunction MouseWheelHandler(e) {\r\n\t\t\t// cross-browser wheel delta\r\n\t\t\te = window.event || e;\r\n\t\t\tvar delta = Math.max(-1, Math.min(1,\r\n\t\t\t\t\t(e.wheelDelta || -e.deltaY || -e.detail)));\r\n\r\n\t\t\tif (!isMoving) { //if theres any #\r\n\r\n\t\t\t\t//scrolling down?\r\n\t\t\t\tif (delta < 0) {\r\n\t\t\t\t\tMS.moveSectionDown();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//scrolling up?\r\n\t\t\t\telse {\r\n\t\t\t\t\tMS.moveSectionUp();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t* Adds a css3 transform property to the container class with or without animation depending on the animated param.\r\n\t\t*/\r\n\t\tfunction transformContainer(container, translate3d, animated){\r\n\t\t\tcontainer.toggleClass('ms-easing', animated);\r\n\r\n\t\t\tcontainer.css(getTransforms(translate3d));\r\n\t\t}\r\n\r\n\r\n\t\t/**\r\n\t\t* Returns the transform styles for all browsers\r\n\t\t*/\r\n\t\tfunction getTransforms(translate3d){\r\n\t\t\treturn {\r\n\t\t\t\t'-webkit-transform': translate3d,\r\n\t\t\t\t'-moz-transform': translate3d,\r\n\t\t\t\t'-ms-transform':translate3d,\r\n\t\t\t\t'transform': translate3d\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Activating the website navigation dots according to the given slide name.\r\n\t\t */\r\n\t\tfunction activateNavDots(name, sectionIndex){\r\n\t\t\tif(options.navigation){\r\n\t\t\t\t$('#multiscroll-nav').find('.active').removeClass('active');\r\n\t\t\t\tif(name){\r\n\t\t\t\t\t$('#multiscroll-nav').find('a[href=\"#' + name + '\"]').addClass('active');\r\n\t\t\t\t}else{\r\n\t\t\t\t\t$('#multiscroll-nav').find('li').eq(sectionIndex).find('a').addClass('active');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Activating the website main menu elements according to the given slide name.\r\n\t\t */\r\n\t\tfunction activateMenuElement(name){\r\n\t\t\tif(options.menu){\r\n\t\t\t\t$(options.menu).find('.active').removeClass('active');\r\n\t\t\t\t$(options.menu).find('[data-menuanchor=\"'+name+'\"]').addClass('active');\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t* Retuns `up` or `down` depending on the scrolling movement to reach its destination\r\n\t\t* from the current section.\r\n\t\t*/\r\n\t\tfunction getYmovement(destiny){\r\n\t\t\tvar fromIndex = $('.ms-left .ms-section.active').index();\r\n\t\t\tvar toIndex = destiny.index();\r\n\r\n\t\t\tif(fromIndex > toIndex){\r\n\t\t\t\treturn 'up';\r\n\t\t\t}\r\n\t\t\treturn 'down';\r\n\t\t}\r\n\r\n\r\n\t\t/**\r\n\t\t* Sets the URL hash for a section with slides\r\n\t\t*/\r\n\t\tfunction setURLHash(anchorLink){\r\n\t\t\tif(options.anchors.length){\r\n\t\t\t\tlocation.hash = anchorLink;\r\n\t\t\t}\r\n\r\n\t\t\tsetBodyClass();\r\n\t\t}\r\n\r\n\t\t /**\r\n\t\t* Sets a class for the body of the page depending on the active section / slide\r\n\t\t*/\r\n\t\tfunction setBodyClass(){\r\n\t\t\tvar section = $('.ms-left .ms-section.active');\r\n\t\t\tvar sectionAnchor = section.data('anchor');\r\n\t\t\tvar sectionIndex = section.index();\r\n\r\n\t\t\tvar text = String(sectionIndex);\r\n\r\n\t\t\tif(options.anchors.length){\r\n\t\t\t\ttext = sectionAnchor;\r\n\t\t\t}\r\n\r\n\t\t\t//changing slash for dash to make it a valid CSS style\r\n\t\t\ttext = text.replace('/', '-').replace('#','');\r\n\r\n\t\t\t//removing previous anchor classes\r\n\t\t\tvar classRe = new RegExp('\\\\b\\\\s?' + 'ms-viewing' + '-[^\\\\s]+\\\\b', \"g\");\r\n\t\t\t$('body')[0].className = $('body')[0].className.replace(classRe, '');\r\n\r\n\t\t\t//adding the current anchor\r\n\t\t\t$('body').addClass('ms-viewing-' + text);\r\n\t\t}\r\n\r\n\r\n\t\t/**\r\n\t\t* Checks for translate3d support\r\n\t\t* @return boolean\r\n\t\t* http://stackoverflow.com/questions/5661671/detecting-transform-translate3d-support\r\n\t\t*/\r\n\t\tfunction support3d() {\r\n\t\t\tvar el = document.createElement('p'),\r\n\t\t\t\thas3d,\r\n\t\t\t\ttransforms = {\r\n\t\t\t\t\t'webkitTransform':'-webkit-transform',\r\n\t\t\t\t\t'OTransform':'-o-transform',\r\n\t\t\t\t\t'msTransform':'-ms-transform',\r\n\t\t\t\t\t'MozTransform':'-moz-transform',\r\n\t\t\t\t\t'transform':'transform'\r\n\t\t\t\t};\r\n\r\n\t\t\t// Add it to the body to get the computed style.\r\n\t\t\tdocument.body.insertBefore(el, null);\r\n\r\n\t\t\tfor (var t in transforms) {\r\n\t\t\t\tif (el.style[t] !== undefined) {\r\n\t\t\t\t\tel.style[t] = \"translate3d(1px,1px,1px)\";\r\n\t\t\t\t\thas3d = window.getComputedStyle(el).getPropertyValue(transforms[t]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tdocument.body.removeChild(el);\r\n\r\n\t\t\treturn (has3d !== undefined && has3d.length > 0 && has3d !== \"none\");\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t* Wraps an element in order to center it vertically by using a class style.\r\n\t\t*/\r\n\t\tfunction addTableClass(element){\r\n\t\t\telement.addClass('ms-table').wrapInner('<div class=\"ms-tableCell\" style=\"height: ' + getTableHeight(element) + 'px\" />');\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t* Gets the height of the section after removing the paddings.\r\n\t\t*/\r\n\t\tfunction getTableHeight(section){\r\n\t\t\tvar sectionHeight = windowHeight;\r\n\r\n\t\t\tif(options.paddingTop || options.paddingBottom){\r\n\t\t\t\tvar paddings = parseInt(section.css('padding-top')) + parseInt(section.css('padding-bottom'));\r\n\t\t\t\tsectionHeight = (windowHeight - paddings);\r\n\t\t\t}\r\n\r\n\t\t\treturn sectionHeight;\r\n\t\t}\r\n\r\n\r\n\t\t/**\r\n\t\t* Scrolls the page to the existent anchor in the URL\r\n\t\t*/\r\n\t\tfunction scrollToAnchor(){\r\n\t\t\t//getting the anchor link in the URL and deleting the `#`\r\n\t\t\tvar sectionAnchor =  window.location.hash.replace('#', '');\r\n\t\t\tvar section = $('.ms-left .ms-section[data-anchor=\"'+sectionAnchor+'\"]');\r\n\r\n\t\t\tif(sectionAnchor.length){  //if theres any #\r\n\t\t\t\tscrollPage(section);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t* Adds or remove the possiblity of scrolling through sections by using the keyboard arrow keys\r\n\t\t*/\r\n\t\tMS.setKeyboardScrolling = function (value){\r\n\t\t\toptions.keyboardScrolling = value;\r\n\t\t};\r\n\r\n\t\t/**\r\n\t\t* Adds or remove the possiblity of scrolling through sections by using the mouse wheel or the trackpad.\r\n\t\t*/\r\n\t\tMS.setMouseWheelScrolling = function (value){\r\n\t\t\tif(value){\r\n\t\t\t\taddMouseWheelHandler();\r\n\t\t\t}else{\r\n\t\t\t\tremoveMouseWheelHandler();\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t/**\r\n\t\t* Defines the scrolling speed\r\n\t\t*/\r\n\t\tMS.setScrollingSpeed = function(value){\r\n\t\t\toptions.scrollingSpeed = value;\r\n\t\t};\r\n\r\n\r\n\r\n\t\tvar touchStartY = 0;\r\n\t\tvar touchStartX = 0;\r\n\t\tvar touchEndY = 0;\r\n\t\tvar touchEndX = 0;\r\n\r\n\t\t/* Detecting touch events\r\n\r\n\t\t* As we are changing the top property of the page on scrolling, we can not use the traditional way to detect it.\r\n\t\t* This way, the touchstart and the touch moves shows an small difference between them which is the\r\n\t\t* used one to determine the direction.\r\n\t\t*/\r\n\t\tfunction touchMoveHandler(event){\r\n\t\t\tvar e = event.originalEvent;\r\n\r\n\t\t\tif(isReallyTouch(e)){\r\n\t\t\t\t//preventing the easing on iOS devices\r\n\t\t\t\tevent.preventDefault();\r\n\r\n\t\t\t\tvar activeSection = $('.ms-left .ms-section.active');\r\n\r\n\t\t\t\tif (!isMoving) { //if theres any #\r\n\t\t\t\t\tvar touchEvents = getEventsPage(e);\r\n\t\t\t\t\ttouchEndY = touchEvents['y'];\r\n\t\t\t\t\ttouchEndX = touchEvents['x'];\r\n\r\n\r\n\t\t\t\t\t//is the movement greater than the minimum resistance to scroll?\r\n\t\t\t\t\tif (Math.abs(touchStartY - touchEndY) > ($(window).height() / 100 * options.touchSensitivity)) {\r\n\r\n\t\t\t\t\t\tif (touchStartY > touchEndY) {\r\n\t\t\t\t\t\t\tMS.moveSectionDown();\r\n\r\n\t\t\t\t\t\t} else if (touchEndY > touchStartY) {\r\n\t\t\t\t\t\t\tMS.moveSectionUp();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t* As IE >= 10 fires both touch and mouse events when using a mouse in a touchscreen\r\n\t\t* this way we make sure that is really a touch event what IE is detecting.\r\n\t\t*/\r\n\t\tfunction isReallyTouch(e){\r\n\t\t\t//if is not IE   ||  IE is detecting `touch` or `pen`\r\n\t\t\treturn typeof e.pointerType === 'undefined' || e.pointerType != 'mouse';\r\n\t\t}\r\n\r\n\r\n\t\t/**\r\n\t\t* Handler to get he coordinates of the starting touch\r\n\t\t*/\r\n\t\tfunction touchStartHandler(event){\r\n\t\t\tvar e = event.originalEvent;\r\n\r\n\t\t\tif(isReallyTouch(e)){\r\n\t\t\t\tvar touchEvents = getEventsPage(e);\r\n\t\t\t\ttouchStartY = touchEvents['y'];\r\n\t\t\t\ttouchStartX = touchEvents['x'];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\t/**\r\n\t\t* Adds the possibility to auto scroll through sections on touch devices.\r\n\t\t*/\r\n\t\tfunction addTouchHandler(){\r\n\t\t\tif(isTouch){\r\n\t\t\t\t//Microsoft pointers\r\n\t\t\t\tMSPointer = getMSPointer();\r\n\r\n\t\t\t\t$(document).off('touchstart ' +  MSPointer.down).on('touchstart ' + MSPointer.down, touchStartHandler);\r\n\t\t\t\t$(document).off('touchmove ' + MSPointer.move).on('touchmove ' + MSPointer.move, touchMoveHandler);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t* Removes the auto scrolling for touch devices.\r\n\t\t*/\r\n\t\tfunction removeTouchHandler(){\r\n\t\t\tif(isTouch){\r\n\t\t\t\t//Microsoft pointers\r\n\t\t\t\tMSPointer = getMSPointer();\r\n\r\n\t\t\t\t$(document).off('touchstart ' + MSPointer.down);\r\n\t\t\t\t$(document).off('touchmove ' + MSPointer.move);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t* Returns and object with Microsoft pointers (for IE<11 and for IE >= 11)\r\n\t\t* http://msdn.microsoft.com/en-us/library/ie/dn304886(v=vs.85).aspx\r\n\t\t*/\r\n\t\tfunction getMSPointer(){\r\n\t\t\tvar pointer;\r\n\r\n\t\t\t//IE >= 11\r\n\t\t\tif(window.PointerEvent){\r\n\t\t\t\tpointer = { down: \"pointerdown\", move: \"pointermove\"};\r\n\t\t\t}\r\n\r\n\t\t\t//IE < 11\r\n\t\t\telse{\r\n\t\t\t\tpointer = { down: \"MSPointerDown\", move: \"MSPointerMove\"};\r\n\t\t\t}\r\n\r\n\t\t\treturn pointer;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t* Gets the pageX and pageY properties depending on the browser.\r\n\t\t* https://github.com/alvarotrigo/fullPage.js/issues/194#issuecomment-34069854\r\n\t\t*/\r\n\t\tfunction getEventsPage(e){\r\n\t\t\tvar events = [];\r\n\r\n\t\t\tevents.y = (typeof e.pageY !== 'undefined' && (e.pageY || e.pageX) ? e.pageY : e.touches[0].pageY);\r\n\t\t\tevents.x = (typeof e.pageX !== 'undefined' && (e.pageY || e.pageX) ? e.pageX : e.touches[0].pageX);\r\n\r\n\t\t\t//in touch devices with scrollBar:true, e.pageY is detected, but we have to deal with touch events. #1008\r\n\t\t\tif(isTouch && isReallyTouch(e)){\r\n\t\t\t\tevents.y = e.touches[0].pageY;\r\n\t\t\t\tevents.x = e.touches[0].pageX;\r\n\t\t\t}\r\n\r\n\t\t\treturn events;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t* Destroy multiscroll.js plugin's events\r\n\t\t*/\r\n\t\tMS.destroy = function() {\r\n\t\t\tMS.setKeyboardScrolling(false);\r\n\t\t\tMS.setMouseWheelScrolling(false);\r\n\r\n\t\t\t$(window)\r\n\t\t\t\t.off('hashchange', hashChangeHandler)\r\n\t\t\t\t.off('resize', doneResizing);\r\n\r\n\t\t\t$(document)\r\n\t\t\t\t.off('mouseenter', '#multiscroll-nav li')\r\n\t\t\t\t.off('mouseleave', '#multiscroll-nav li')\r\n\t\t\t\t.off('click', '#multiscroll-nav a');\r\n\t\t};\r\n\r\n\t\t/**\r\n\t\t* Build multiscroll.js plugin's events after destroy\r\n\t\t*/\r\n\t\tMS.build = function() {\r\n\t\t\tMS.setKeyboardScrolling(true);\r\n\t\t\tMS.setMouseWheelScrolling(true);\r\n\r\n\t\t\t$(window)\r\n\t\t\t\t.on('hashchange', hashChangeHandler)\r\n\t\t\t\t.on('resize', doneResizing);\r\n\r\n\t\t\t$(document)\r\n\t\t\t\t.on('mouseenter', '#multiscroll-nav li')\r\n\t\t\t\t.on('mouseleave', '#multiscroll-nav li')\r\n\t\t\t\t.on('click', '#multiscroll-nav a');\r\n\t\t};\r\n\r\n\t};\r\n})(jQuery, window, document, Math);"],"sourceRoot":"/source/"}
\ No newline at end of file
diff --git a/gulpfile.js b/gulpfile.js
index c7cf60c..45d755b 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -1,18 +1,34 @@
-/*-------------------------------------------------------------------
-  Required plugins
--------------------------------------------------------------------*/
 var gulp = require('gulp');
 var rename = require('gulp-rename');
+var sourcemaps = require('gulp-sourcemaps');
 var uglify = require('gulp-uglify');
+var sass = require('gulp-sass');
+var minifyCss = require('gulp-clean-css');
+
+gulp.task('css', function() {
+    gulp.src('./jquery.multiscroll.css')
+        .pipe(sourcemaps.init())
+        .pipe(gulp.dest('./dist'))
+        .pipe(minifyCss({
+            compatibility: 'ie8',
+            advanced: false,
+            keepSpecialComments: '1'
+        }))
+        .pipe(rename({suffix: '.min'}))
+        .pipe(sourcemaps.write('.')) 
+        .pipe(gulp.dest('./dist'));
+});
 
 gulp.task('js', function() {
-  gulp.src('./jquery.multiscroll.js')
-    .pipe(uglify({
-        preserveComments: 'license'
-      }))
-    .pipe(rename({suffix: '.min'}))
-    .pipe(gulp.dest('./dist'));
+    gulp.src('./jquery.multiscroll.js')
+        .pipe(sourcemaps.init())
+        .pipe(gulp.dest('./dist'))
+        .pipe(uglify({
+            preserveComments: 'license'
+        }))
+        .pipe(rename({suffix: '.min'}))
+        .pipe(sourcemaps.write('.'))
+        .pipe(gulp.dest('./dist'));
 });
 
-// Watcher
-gulp.task('default', ['js']);
\ No newline at end of file
+gulp.task('default', ['css', 'js']);
\ No newline at end of file
diff --git a/jquery.multiscroll.css b/jquery.multiscroll.css
index f3147df..d5ca671 100644
--- a/jquery.multiscroll.css
+++ b/jquery.multiscroll.css
@@ -1,9 +1,9 @@
-/**
- * multiscroll 0.0.6 Beta
+/*!
+ * multiscroll.js 0.1.7 Beta
  * https://github.com/alvarotrigo/multiscroll.js
- * MIT licensed
+ * @license MIT licensed
  *
- * Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo
+ * Copyright (C) 2016 alvarotrigo.com - A project by Alvaro Trigo
  */
 html, body {
     margin: 0;
diff --git a/jquery.multiscroll.js b/jquery.multiscroll.js
index 86d4b8d..9ea9062 100644
--- a/jquery.multiscroll.js
+++ b/jquery.multiscroll.js
@@ -1,11 +1,10 @@
 /*!
  * multiscroll.js 0.1.7 Beta
  * https://github.com/alvarotrigo/multiscroll.js
- * MIT licensed
+ * @license MIT licensed
  *
- * Copyright (C) 2013 alvarotrigo.com - A project by Alvaro Trigo
+ * Copyright (C) 2016 alvarotrigo.com - A project by Alvaro Trigo
  */
-
 (function($, window, document, Math, undefined) {
 
 	$.fn.multiscroll = function(options) {
diff --git a/package.json b/package.json
index 2bd2daf..86832e5 100644
--- a/package.json
+++ b/package.json
@@ -1,11 +1,8 @@
 {
   "name": "multiscroll.js",
   "version": "0.1.7",
-  "description": "a simple plugin to create multi scrolling websites with two vertical scrolling panels.",
+  "description": "A simple plugin to create split scrolling websites with two vertical scrolling panels.",
   "main": "jquery.multiscroll.js",
-  "directories": {
-    "example": "examples"
-  },
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1"
   },
@@ -15,12 +12,13 @@
   },
   "keywords": [
     "scroll",
-    "javascript",
-    "jquery",
+    "split-screen",
     "multi",
-    "divided"
+    "split"
+  ],
+  "authors": [
+    "Alvaro Trigo https://github.com/alvarotrigo"
   ],
-  "author": "Alvaro Trigo",
   "license": "MIT",
   "bugs": {
     "url": "https://github.com/alvarotrigo/multiscroll.js/issues"
@@ -28,7 +26,10 @@
   "homepage": "http://www.alvarotrigo.com/multiScroll/",
   "devDependencies": {
     "gulp": "^3.9.0",
+    "gulp-clean-css": "^2.0.8",
     "gulp-rename": "^1.2.2",
-    "gulp-uglify": "^1.4.2"
+    "gulp-sass": "^2.0.4",
+    "gulp-sourcemaps": "^1.6.0",
+    "gulp-uglify": "^1.4.1"
   }
 }
