Plunkr is here
Definitely not a CSS transition/guru, but I'm trying to make clicking on an icon slide in the input. I have this working, but as soon as the animation is finished my icon blows up to the width of the containing div and I'm not sure why.
Markup
<form class="form">
<div class="input-group col-sm-5">
<span class="btn btn-default input-group-addon" ng-click="hideInput = !hideInput">
<span class="glyphicon glyphicon-flag"></span>
</span>
<input class="form-control animate-hide" ng-hide="hideInput" />
</div>
</form>
Styles
.animate-hide {
-webkit-transition: all linear 0.75s;
-o-transition: all linear 0.75s;
transition: all linear 0.75s;
}
.animate-hide.ng-hide {
width: 0;
}
.glyphicon-flag {
color: #d9534f !important;
}
Everything besides the button expanding when the animation complets works great.