File tree Expand file tree Collapse file tree
adev/src/content/examples/animations/src/app/enter-and-leave Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 transform : translateY (0 );
2727 }
2828}
29+
30+ .toggle-btn {
31+ background : transparent;
32+ border : 1px solid var (--primary-contrast , black);
33+ color : var (--primary-contrast , black);
34+ padding : 10px 24px ;
35+ border-radius : 8px ;
36+ cursor : pointer;
37+ }
Original file line number Diff line number Diff line change 11<!-- #docplaster -->
22< h2 > < code > animate.enter</ code > Binding Example</ h2 >
33
4- < button type ="button " (click) ="toggle() "> Toggle Element</ button >
4+ < button type ="button " class =" toggle-btn " (click) ="toggle() "> Toggle Element</ button >
55
66@if (isShown()) {
77 < div class ="enter-container " [animate.enter] ="enterClass() ">
Original file line number Diff line number Diff line change 2626 transform : translateY (0 );
2727 }
2828}
29+
30+ .toggle-btn {
31+ background : transparent;
32+ border : 1px solid var (--primary-contrast , black);
33+ color : var (--primary-contrast , black);
34+ padding : 10px 24px ;
35+ border-radius : 8px ;
36+ cursor : pointer;
37+ }
Original file line number Diff line number Diff line change 11<!-- #docplaster -->
22< h2 > < code > animate.enter</ code > Example</ h2 >
33
4- < button type ="button " (click) ="toggle() "> Toggle Element</ button >
4+ < button type ="button " class =" toggle-btn " (click) ="toggle() "> Toggle Element</ button >
55
66@if (isShown()) {
77 < div class ="enter-container " animate.enter ="enter-animation ">
Original file line number Diff line number Diff line change 2020.leaving {
2121 opacity : 0 ;
2222 transform : translateY (20px );
23- transition : opacity 500ms ease-out, transform 500ms ease-out;
23+ transition :
24+ opacity 500ms ease-out,
25+ transform 500ms ease-out;
26+ }
27+
28+ .toggle-btn {
29+ background : transparent;
30+ border : 1px solid var (--primary-contrast , black);
31+ color : var (--primary-contrast , black);
32+ padding : 10px 24px ;
33+ border-radius : 8px ;
34+ cursor : pointer;
2435}
Original file line number Diff line number Diff line change 11<!-- #docplaster -->
22< h2 > < code > animate.leave</ code > Binding Example</ h2 >
33
4- < button type ="button " (click) ="toggle() "> Toggle Element</ button >
4+ < button type ="button " class =" toggle-btn " (click) ="toggle() "> Toggle Element</ button >
55
66@if (isShown()) {
77 < div class ="leave-container " [animate.leave] ="farewell() ">
Original file line number Diff line number Diff line change 2020.leaving {
2121 opacity : 0 ;
2222 transform : translateY (20px );
23- transition : opacity 500ms ease-out, transform 500ms ease-out;
23+ transition :
24+ opacity 500ms ease-out,
25+ transform 500ms ease-out;
26+ }
27+
28+ .toggle-btn {
29+ background : transparent;
30+ border : 1px solid var (--primary-contrast , black);
31+ color : var (--primary-contrast , black);
32+ padding : 10px 24px ;
33+ border-radius : 8px ;
34+ cursor : pointer;
2435}
Original file line number Diff line number Diff line change 11<!-- #docplaster -->
22< h2 > < code > animate.leave</ code > Function Example</ h2 >
33
4- < button type ="button " (click) ="toggle() "> Toggle Element</ button >
4+ < button type ="button " class =" toggle-btn " (click) ="toggle() "> Toggle Element</ button >
55
66@if (isShown()) {
77 < div class ="leave-container " (animate.leave) ="leavingFn($event) ">
Original file line number Diff line number Diff line change 2020.leaving {
2121 opacity : 0 ;
2222 transform : translateY (20px );
23- transition : opacity 500ms ease-out, transform 500ms ease-out;
23+ transition :
24+ opacity 500ms ease-out,
25+ transform 500ms ease-out;
26+ }
27+
28+ .toggle-btn {
29+ background : transparent;
30+ border : 1px solid var (--primary-contrast , black);
31+ color : var (--primary-contrast , black);
32+ padding : 10px 24px ;
33+ border-radius : 8px ;
34+ cursor : pointer;
2435}
Original file line number Diff line number Diff line change 11<!-- #docplaster -->
22< h2 > < code > animate.leave</ code > Example</ h2 >
33
4- < button type ="button " (click) ="toggle() "> Toggle Element</ button >
4+ < button type ="button " class =" toggle-btn " (click) ="toggle() "> Toggle Element</ button >
55
66@if (isShown()) {
77 < div class ="leave-container " animate.leave ="leaving ">
You can’t perform that action at this time.
0 commit comments