Support » Plugins » Hacks » Cant move img from :first to :last with jquery

  • Hi !

    I can’t figure out how I must proceed in order to move my image from :first two :last with jquery.

    I’m making an infinite slider on :hover, for the moment, it kind of work.
    But the images don’t replace so it’s not that infinite and I don’t know how to make my animation to repeat while on :hover.

    This is my code:

    $(“body”).delegate(“.slider img”, “mouseenter”, function (e) {
    ($(this)).animate({
    marginLeft: -300
    }, 400, function () {
    $(this).css({
    marginLeft: -302
    });
    find(“img:last”).after($(this).find(“img:first”));
    })
    });

Viewing 1 replies (of 1 total)
  • I think there is some technical problem with it. You must have to find the problem with a huge concentration on it. You can use software to check the problem.

Viewing 1 replies (of 1 total)
  • The topic ‘Cant move img from :first to :last with jquery’ is closed to new replies.