0

I added a fiddle. I don't want spaces between the divs when they shrink.

http://jsfiddle.net/TnVEN/

$("#container").click(function(){




    $(".synth").css({
        'transition': 'all 1s',
        'transform': 'scale(0.5)',
         float:"right"             //Shouldn't this kill the spaces???


    });
})
3
  • Please try transform-origin to change position of transformed elements
    – Mamuz
    Oct 13, 2013 at 17:34
  • Otherwise check this answer
    – Mamuz
    Oct 13, 2013 at 17:46
  • Thanks. It looks like its what I'm going for.
    – William
    Oct 13, 2013 at 17:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.