fantazer
7/8/2016 - 12:16 PM

SCROLL TOP

SCROLL TOP

.arrow-top
	bottom 20px
	right 20px
	background red
	color white
	up()
	padding 10px 20px
	br(4px)
	opacity .7
	display none
$.scrollUp({
    scrollName: 'arrow-top',      // Element ID
    scrollDistance: 500,         // Distance from top/bottom before showing element (px)
    scrollFrom: 'top',           // 'top' or 'bottom'
    scrollSpeed: 600,            // Speed back to top (ms)
    easingType: 'linear',        // Scroll to top easing (see http://easings.net/)
    animation: 'fade',           // Fade, slide, none
    animationSpeed: 200,         // Animation speed (ms)
    scrollTrigger: false,        // Set a custom triggering element. Can be an HTML string or jQuery object
    scrollTarget: false,         // Set a custom target element for scrolling to. Can be element or number
    scrollText: 'вверх', // Text for element, can contain HTML
    scrollTitle: false,          // Set a custom <a> title if required.
    scrollImg: false,            // Set true to use image
    activeOverlay: false,        // Set CSS color to display scrollUp active point, e.g '#00FFFF'
    zIndex: 2147483647           // Z-Index for the overlay
});
//bower i scrollup --save-dev
//script(src="bower/scrollup/dist/jquery.scrollUp.min.js")
.arrow-top