Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Animation Fixes #4742

Closed
wants to merge 3 commits into from
Closed

Animation Fixes #4742

wants to merge 3 commits into from

Conversation

matsko
Copy link
Contributor

@matsko matsko commented Oct 31, 2013

No description provided.

@ghost ghost assigned google-admin and IgorMinar Oct 31, 2013
@@ -9,3 +9,6 @@
ng\:form {
display: block;
}

.ng-animate { clip:rect(1px, 0, auto, auto); }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a comment with explanation of why this is here

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also please verify that the comment is stripped from the string inlined into angular.js (it should be)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/* The clip property will ensure that the CSS transition will

  • ALWAYS animate something when transitions are performed using
  • ngAnimate + $animate. If a CSS transition doesn't have any
  • transition properties to transition to then it will hang until a
  • new style is changed. The clip style is a highly underused property
  • and is only visible on screen if position=absolute|fixed is used. */

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And yes it does get stripped.

@IgorMinar
Copy link
Contributor

lgtm

@matsko
Copy link
Contributor Author

matsko commented Nov 5, 2013

The message for the $sniffer.msie commit is as follows:

    feat($sniffer): make msie variable public

    The msie variable is a global variable used within the ng core which contains the
    version number for the current Internet Explorer browser that is rendering the
    application. Other modules outside of the ng core could make use of this variable
    instead of having to rollout duplicate detection code. This code makes it easy to
    reuse this simple property within the $sniffer service.

…ass definitions

BREAKING CHANGE

ngAnimate addClass / removeClass animations are now applied right away. This means
that as soon as the animation starts the class will be added (addClass) or removed
(removeClass) to the element being animated instead of after the -add-active /
-remove-active animations are completed. This allows for animations outside of
ngAnimate to not conflict with $animate.

This commit introduces beforeAddClass and beforeRemoveClass animation event functions and
executes any addClass and removeClass event functions AFTER the class has been added or
removed (this is opposite functionality of how ngAnimate used to work when performing
JS-enabled animations addClass / removeClass animations). If your animation code relies on
any animations being performed prior to the class change then simply use the new
beforeAddClass and beforeRemoveClass animation event functions.

Finally ng-hide-remove doesn't require display:block!important anymore and that must
be placed on ng-hide-add instead if you plan on animating show and hide animations
using CSS transitions or keyframe animations.
@IgorMinar
Copy link
Contributor

I made the changes and landed this PR

@IgorMinar IgorMinar closed this Nov 6, 2013
@matsko matsko deleted the closing_animations branch November 6, 2013 13:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants