#infocontent { width: 100%; height: 100%; position: fixed; left: 0px; top: 0px; z-index: -1; /* Ensure div tag stays behind content; -999 might work, too. */ } .stretch { width:100%; height:100%; } .fit { width: 100%; height: 100%; } .swap-animation.ng-enter, .swap-animation.ng-leave { transition:0.5s linear all; } .swap-animation.ng-enter { opacity:0; } .swap-animation.ng-enter-active { opacity:1; } .swap-animation.ng-leave { opacity:1; } .swap-animation.ng-leave-active { opacity:0; }