Loading, please wait...

ARTDESIGN SCROLL TO TOP

SETTINGS

Attributes

data-ad-scroll-to-top-options="BottomLeft"

This attribute overwrites the settings of the plugin only for the concrete element
<body data-ad-scroll-to-top-options="BottomLeft">
    //Content
</body>

Public Methods

Destroy

<script type="text/javascript">
    var ScrollToTop = $("body").ScrollToTop();
    ScrollToTop.Destroy();
</script>

Default Options

<script type="text/javascript">
    General: { // General settings of the element
        ClassPrefix: "STT_" // Put ClassPrefix on the style of the element in order to prevent a conflict with other styles from external CSS file; Must be string; By default: "STT_"
    },
    Global: { // Global settings of the element
        ZIndex: 9999, // It specifies the stack order of an elements; Must be integer or string (auto, initial, inherit); By default: 9999
        ScrollElement: "window", // Set the scroll element; Must be string; By default: "window"
        ScrollAnimation: 1, // Set the scroll animation speed to top; Must be integer or decimal; By default: 1
        FadeAnimation: 0.35, // Set the fade animation speed of the button; Must be integer or decimal; By default: 0.35
        InitWhenScrollTopIs: 200, // Specifies the pixels of the scroll to show the button; Must be integer; By default: 200
        ExternalScroll: true // If it is true it sets external scroll; Must be boolean; By default: true
    },
    BrowserSupport: { // Settings for the browser support
        Chrome: 20, // Indicates the require minimum version of the Chrome browser; Must be integer; By default: 20
        Mozilla: 20, // Indicates the require minimum version of the Mozilla browser; Must be integer; By default: 20
        Opera: 20, // Indicates the require minimum version of the Opera browser; Must be integer; By default: 20
        Safari: 5, // Indicates the require minimum version of the Safari browser; Must be integer; By default: 5
        MSIE: 9, // Indicates the require minimum version of the MSIE browser; Must be integer; By default: 9
        MSEdge: 12 // Indicates the require minimum version of the MSEdge browser; Must be integer; By default: 12
    },
    Button: { // Settings for Button
        ElementToAttach: "body", // Set the element to which to attach the button; Must be string; By default: "body"
        Position: "BottomRight", // Set position of the element; Must be string; By default: "BottomRight"
        Horizontal: 28, // Set the horizontal space; Must be integer; By default: 28
        Vertical: 28, // Set the vertical space; Must be integer; By default: 28
        Icon: "icon-angle-circled-up", // Set the Icon from the ArtDesignIcons PlugIn; Must be string; By default: "icon-angle-circled-up"
        FontSize: 40, // Set the size of the font; Must be string; By default: "40px"
        Cursor: "pointer", // Set Cursor style on CSS; Must be string; By default: "pointer"
        Normal: { // Settings for Normal color and opacity of the element
            Color: "#6488AA",
            Opacity: 0.6
        },
        Hover: { // Settings for Hover color and opacity of the element
            Color: "#6488AA",
            Opacity: 1
        },
        Click: { // Settings for Click color and opacity of the element
            Color: "#6488AA",
            Opacity: 1
        }
    },
    BeforeScrollToTop: function() {},
    AfterScrollToTop: function() {},
    Click: function() {}
</script>