Created
August 29, 2019 09:36
-
-
Save blubbll/12fe225111a8e8f69ca9149dd60b8746 to your computer and use it in GitHub Desktop.
angularjs animations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* https://stackoverflow.com/a/33927043/9506947 */ | |
ng-view.ng-enter,ng-view.ng-leave-active { | |
position: absolute!important; | |
filter: none; | |
width: calc(100% - 30px); /* padding von bs=15*2=30 */ | |
} | |
@keyframes fadeIn { | |
0% { opacity: 0; } | |
50% { opacity: .5; } | |
100% { opacity: 1; } | |
} | |
@keyframes fadeOut { | |
0% { opacity: 1; } | |
50% { opacity: .5; } | |
100% { opacity: 0; } | |
} | |
@keyframes blurIn { | |
0% { filter: none; } | |
100% { filter: blur(7px);} | |
} | |
@keyframes blurOut { | |
0% { filter: blur(7px); } | |
100% { filter: none;} | |
} | |
ng-view.ng-enter { animation: blurIn 0.5s both linear, fadeIn 0.5s both linear; z-index: 8888;} | |
ng-view.ng-leave{ animation: blurOut 0.5s both linear, fadeOut 0.5s both linear; z-index: 9999;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment