Sly Scroller Jquery
Posted: 05 Jan 2025, 16:17
Ich würde gerne das folgende Plugin verwenden: http://darsa.in/sly/, aber ich bekomme es nicht zum Laufen. Hier sind einige Details zu meinem Code.
Ich habe Folgendes HTML:
und folgende JS:
});
Aber irgendwie funktioniert Sly-Scroller nicht? Danke für die Hilfe!
Ich habe Folgendes HTML:
Code: Select all
[list]
[*][url=#]
[img]/images/users/7.jpg[/img]
[/url]
[*][url=#]
[img]/images/users/7.jpg[/img]
[/url][/list]
Code: Select all
$(document).find(".scroller").each(function (i, element) {
var $cont = $(element),
$frame = $cont.find(".sly"),
$scrollbar = $cont.find(".scrollbar");
$frame.sly({
// Sly type
horizontal: 1, // Change to horizontal direction.
itemNav: null, // Item navigation type. Can be: basic, smart, centered, forceCentered.
// Scrollbar
scrollBar: $scrollbar, // Selector or DOM element for scrollbar container.
dragHandle: 0, // Whether the scrollbar handle should be dragable.
dynamicHandle: 0, // Scrollbar handle represents the relation between hidden and visible content.
minHandleSize: 50, // Minimal height or width (depends on sly direction) of a handle in pixels.
clickBar: 0, // Enable navigation by clicking on scrollbar.
syncFactor: 0.50, // Handle => SLIDEE sync factor. 0-1 floating point, where 1 = immediate, 0 = infinity.
});
$frame.sly('reload');
Aber irgendwie funktioniert Sly-Scroller nicht? Danke für die Hilfe!