-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Add animationEnd option for transition service #40
Conversation
@petebacondarwin would be awesome if you could review this one. I still didn't go over implementation details of the transition service.... |
So my main concern with this is that CSS3 has transitions, transforms and On 9 January 2013 19:39, Pawel Kozlowski notifications@github.com wrote:
|
Transforms don't have their own end event name, though. I think the only options are And I wasn't sure about the API to use for this, but since there is only one alternative having a flag seemed reasonable and easier to remember than |
OK, I ought to read the docs before I open my mouth. Despite this, here I go again... I wonder if actually we could do something more cool with animations. They To trigger an animation you apply an animation-name to an element and it The definition of the animation would still be provided in CSS via the On 9 January 2013 21:28, Andy Joslin notifications@github.com wrote:
|
I think the CSS class is still a better approach, and people could use an object with styles if they really didn't want a css class. You could have a pretty complicated css animation class, say for example for a sun rising and setting: .sun {
-webkit-animation-name: sunrise 5s, sunset 5s;
-webkit-animation-timing-function: ease-in, ease-out;
/* Sun stays at the top of the sky for 5sec standing still before sunset */
-webkit-animation-delay: 0s 5s;
/* Make it so style for sunrise and sunset animations stay applied afterwards */
-webkit-animation-fill-mode: "forwards", "forwards";
} |
As I said, I hadn't really read the docs, again!! Is it really this simple? Can we come up with a more general name that is On 10 January 2013 17:15, Andy Joslin notifications@github.com wrote:
|
I think it is simple enough to switch the end event. But you're right, I dunno if $transition is the best name for it. I dunno.. $change? $move? $flux? $shift? $transform? |
Perhaps $animate and pretend that transitions are just a special form of On 10 January 2013 19:40, Andy Joslin notifications@github.com wrote:
|
What about $effect? |
Too vague for me. :-( On 10 January 2013 20:09, Josh D Miller notifications@github.com wrote:
|
I like $transition fine. Should we just merge this and keep the name? |
OK On 24 January 2013 21:06, Andy Joslin notifications@github.com wrote:
|
Landed as 11348f9 |
Correct main in bower.json, fixes angular-ui#37
So people can use keyframes for their animations, which trigger the animationEnd event instead of transitionEnd event.