CSS-Tricks / MovingBoxes

Simple horizontal slider which grows up the current box when it's in focus (image, title & text) and back down when it's not in focus.
http://css-tricks.github.io/MovingBoxes/
GNU Lesser General Public License v3.0
280 stars 147 forks source link

How To move mb-controls to top? #119

Open TylerDurdon opened 11 years ago

TylerDurdon commented 11 years ago

Hello, i need to put the Links in mb-controls to the top (before mb-scroll). Can anyone help me ?

Thx

JamyGolden commented 11 years ago

This should do what you're looking for:

$('#slider').movingBoxes({
    preinit: function(){
        var $wrapper = $(this).closest('.mb-wrapper'),
            $controls = $wrapper.find('.mb-controls');
        $wrapper.prepend($controls);
    },

    // if true, navigation links will be added
    buildNav: true
});