There seems to be some confusion around CSS3 animations and learning Angular animations has been quite frustrating for me. To demonstrate, I have created a Plunker here: http://plnkr.co/edit/VSIxhDy1qaVuF0j0pxjT?p=preview
Here is the CSS code used in the test scenario:
#wrapper {
position: relative;
overflow: hidden;
}
#wrapper, form, #wrapper > div {
height: 400px;
width: 400px;
}
#wrapper > * {
transition: 10s linear all;
}
form {
position: absolute;
top: 0;
left: 0;
z-index: 1;
}
form.ng-hide-add-active {
top: -100%;
}
#wrapper > div {
position: absolute;
left: 0;
top: 0;
background: #66F;
}
#wrapper.ng-hide.ng-hide-remove-active {
top: 100%;
}
I am facing an issue where I want a form to slide up upon successful submission, with a success message sliding up underneath it. However, the under div just appears instead of animating. It behaves differently on Plunker compared to my code, where it initially shows, then vanishes with animation, only to reappear when the form is submitted. I have tried various solutions found online, such as using ng-animate="'name'"
to create custom classes, but it does not work for me. The documentation also mentions an ng-hide-remove class that never seems to get applied.
Is there a benefit to using CSS3 transitions over creating custom animations with the animate module and utilizing jQuery? I believe keyframes might offer the most advantage. This challenge is making simple tasks, easily achievable in jQuery, exceedingly difficult...