From b64458041a377cdd9a929078fdb2079fa57f0a32 Mon Sep 17 00:00:00 2001 From: Saman Bemel-Benrud Date: Tue, 19 Mar 2013 14:25:29 -0400 Subject: [PATCH] smoother animations on preset grid inspect. --- js/id/ui/preset_grid.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/id/ui/preset_grid.js b/js/id/ui/preset_grid.js index 491d3cc74..83db3c574 100644 --- a/js/id/ui/preset_grid.js +++ b/js/id/ui/preset_grid.js @@ -149,9 +149,13 @@ iD.ui.PresetGrid = function(context, entity) { if (presetinspect) { var old = presetinspect; - old.style('max-height', '400px') + old .transition() + .duration(400) + .style('opacity','0') .style('max-height', '0px') + .style('padding-top', '0px') + .style('padding-bottom', '0px') .each('end', function() { old.remove(); });