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
import { routerTransition } from 'router.animations' | |
... | |
@Component({ | |
selector: '...', | |
styleUrls: ['...'], | |
templateUrl: './app.template.html', | |
animations: [routerTransition], | |
}) | |
export class AppComponent { |
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
<main [@routerTransition]="getPageTransition(routerOutlet)"> | |
<router-outlet #routerOutlet="outlet"></router-outlet> | |
</main> |
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
import { | |
sequence, | |
trigger, | |
stagger, | |
animate, | |
style, | |
group, | |
query as q, | |
transition, | |
keyframes, |
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
import { BrowserAnimationsModule } from '@angular/platform-browser/animations' | |
import { AppComponent } from 'app.component' | |
... | |
@NgModule({ | |
imports: [BrowserAnimationsModule, ...], | |
declarations: [AppComponent, ...], | |
bootstrap: [AppComponent] | |
}) | |
export class AppModule { } |
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
const specificAnimation1 = [ | |
/* specific animation here */ | |
] | |
const specificAnimation2 = [ | |
/* specific animation here */ | |
] | |
const specificAnimation3 = [ | |
/* specific animation here */ |
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
const genericAnimation = [ | |
/* generic animation here */ | |
] | |
export const routerTransition = trigger('routerTransition', [ | |
transition('* => *', genericAnimation) | |
]); |
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
<ul class="grid"> | |
<li class="high"> | |
<img src="burger1.jpg"> | |
</li> | |
<li> | |
<img src="burger2.jpg"> | |
</li> | |
<li class="wide"> | |
<img src="burger3.jpg"> | |
</li> |
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
ul { | |
list-style: none; | |
display: grid; | |
grid-gap: 0.4rem; | |
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); | |
grid-auto-rows: 28%; | |
grid-auto-flow: dense; | |
} | |
.wide { |
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
ul { | |
list-style: none; | |
display: grid; | |
grid-gap: 0.4rem; | |
grid-template-columns: 33.3% 33.3% auto; | |
grid-auto-rows: 40%; | |
} |
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
<ul class="grid"> | |
<li><img src="burger1.jpg"></li> | |
<li><img src="burger2.jpg"></li> | |
<li><img src="burger3.jpg"></li> | |
<li><img src="burger4.jpg"></li> | |
<li><img src="burger5.jpg"></li> | |
<li><img src="burger6.jpg"></li> | |
<li><img src="burger7.jpg"></li> | |
... | |
</ul> |
NewerOlder