You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
841 B

  1. var util = {
  2. isAppearSupported: function isAppearSupported(props) {
  3. return props.transitionName && props.transitionAppear || props.animation.appear;
  4. },
  5. isEnterSupported: function isEnterSupported(props) {
  6. return props.transitionName && props.transitionEnter || props.animation.enter;
  7. },
  8. isLeaveSupported: function isLeaveSupported(props) {
  9. return props.transitionName && props.transitionLeave || props.animation.leave;
  10. },
  11. allowAppearCallback: function allowAppearCallback(props) {
  12. return props.transitionAppear || props.animation.appear;
  13. },
  14. allowEnterCallback: function allowEnterCallback(props) {
  15. return props.transitionEnter || props.animation.enter;
  16. },
  17. allowLeaveCallback: function allowLeaveCallback(props) {
  18. return props.transitionLeave || props.animation.leave;
  19. }
  20. };
  21. export default util;