Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions js/craftyslide.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* Craftyslide
* Created by: Abid Din - http://craftedpixelz.co.uk
* Version: 1.0
* Version: 1.0.1
* Copyright: Crafted Pixelz
* License: MIT license
* Updated: 7th June 2011
* Updated: 20th February 2012
*/

(function ($) {
Expand All @@ -25,6 +25,7 @@

// Vars
var $this = $(this);
var self = this;
var $slides = $this.find("ul li");

$slides.not(':first').hide();
Expand Down Expand Up @@ -76,7 +77,7 @@
// Auto mode
function auto() {
setInterval(function () {
$slides.filter(":first-child").fadeOut(options.fadetime).next("li").fadeIn(options.fadetime).end().appendTo("#slideshow ul");
$slides.filter(":first-child").fadeOut(options.fadetime).next("li").fadeIn(options.fadetime).end().appendTo("ul", self);

$slides.each(function () {
if ($slides.is(":visible")) {
Expand Down