.page-home { &.ng-leave { transform-origin: 0% 0%; animation: rotateFall .3s both ease-in; } &.ng-enter { animation: scaleUp 0.3s both ease-in; } }