angularjs - How to control height when animating in & out using animate.css and flexbox? -
i trying animate in/out different states using angular , ui-router. have added animate.css , have managed different states transitioning, problem there weird quirk height of boxes, when animate boxes seem been 50% height(like makes room other state) once finished animating box becomes 100% height should way whole time.
you can check out here: http://codepen.io/daimz/pen/pqwrgn
i have feeling it's flexbox issue.
.app-wrapper display: flex height: 100vh flex-flow: column nowrap align-items: stretch align-content: center .header .page-area flex: 1 .header display: flex flex-basis: 72px max-height: 72px background: tomato flex-flow: row nowrap align-items: center padding: 1em .nav list-style: none margin-left: auto li display: inline-block .brand:hover animation: 300ms shake .page-area background: #eee flex-grow: 2 display: flex flex-flow: row onwrap align-items: stretch .left-tray, .content-area flex: 1 .left-tray flex-basis: 250px max-width: 250px padding: 10px color: whitesmoke background: mix(black, teal, 70%) .content-area padding: 10px background: white [ui-view].ng-enter transition: 1s .left-tray opacity: 0 animation-name: fadeinleft animation-duration: 0.6s animation-delay: 0.4s .content-area animation-name: slideinleft animation-duration: 1s [ui-view].ng-leave transition: 1s .left-tray animation-name: fadeoutleft animation-duration: 0.6s animation-delay: 0.4s .content-area animation-name: slideoutleft animation-duration: 1s
Comments
Post a Comment