Skip to content

Slideto

lpaulger edited this page Jan 9, 2012 · 2 revisions

Code required for github like slider

After some research github uses a multitude of functions that cover all types of slide effects. Look at this file: github slider/history using jsbeautifier

github slider

slideTo: function (a) {
        var b = this.pathFromURL(a),
            c = this.frameForPath(b),
            d = $("#slider .frame-center").attr("data-path") || "";
        c.is(".frame-center") || (d == "/" || b.split("/").length > d.split("/").length ? this.slideForwardTo(a) : this.slideBackTo(a))
}
Clone this wiki locally