Skip to content

Commit 1ee0a76

Browse files
committed
feat(entrance-animations): hide component before delay ends for entrance animations
#58
1 parent 053ef72 commit 1ee0a76

33 files changed

+33
-1
lines changed

lib/bouncing-entrances/bounce-in-down.animation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export function bounceInDownAnimation(options?: IBounceInDownAnimationOptions):
5454
transition(
5555
'0 => 1',
5656
[
57+
style({ visibility: 'hidden' }),
5758
...(options && options.animateChildren === 'before' ? [query('@*', animateChild(), { optional: true })] : []),
5859
group([
5960
useAnimation(bounceInDown()),

lib/bouncing-entrances/bounce-in-left.animation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export function bounceInLeftAnimation(options?: IBounceInLeftAnimationOptions):
5454
transition(
5555
'0 => 1',
5656
[
57+
style({ visibility: 'hidden' }),
5758
...(options && options.animateChildren === 'before' ? [query('@*', animateChild(), { optional: true })] : []),
5859
group([
5960
useAnimation(bounceInLeft()),

lib/bouncing-entrances/bounce-in-right.animation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export function bounceInRightAnimation(options?: IBounceInRightAnimationOptions)
5454
transition(
5555
'0 => 1',
5656
[
57+
style({ visibility: 'hidden' }),
5758
...(options && options.animateChildren === 'before' ? [query('@*', animateChild(), { optional: true })] : []),
5859
group([
5960
useAnimation(bounceInRight()),
@@ -79,7 +80,6 @@ export function bounceInRightOnEnterAnimation(options?: IBounceInRightAnimationO
7980
transition(
8081
':enter',
8182
[
82-
// style({ background: 'red' }),
8383
style({ visibility: 'hidden' }),
8484
...(options && options.animateChildren === 'before' ? [query('@*', animateChild(), { optional: true })] : []),
8585
group([

lib/bouncing-entrances/bounce-in-up.animation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export function bounceInUpAnimation(options?: IBounceInUpAnimationOptions): Anim
5454
transition(
5555
'0 => 1',
5656
[
57+
style({ visibility: 'hidden' }),
5758
...(options && options.animateChildren === 'before' ? [query('@*', animateChild(), { optional: true })] : []),
5859
group([
5960
useAnimation(bounceInUp()),

lib/bouncing-entrances/bounce-in.animation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export function bounceInAnimation(options?: IAnimationOptions): AnimationTrigger
4646
transition(
4747
'0 => 1',
4848
[
49+
style({ visibility: 'hidden' }),
4950
...(options && options.animateChildren === 'before' ? [query('@*', animateChild(), { optional: true })] : []),
5051
group([
5152
useAnimation(bounceIn()),

lib/fading-entrances/fade-in-down-big.animation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function fadeInDownBigAnimation(options?: IFadeInDownBigAnimationOptions)
4141
transition(
4242
'0 => 1',
4343
[
44+
style({ visibility: 'hidden' }),
4445
...(options && options.animateChildren === 'before' ? [query('@*', animateChild(), { optional: true })] : []),
4546
group([
4647
useAnimation(fadeInDownBig()),

lib/fading-entrances/fade-in-down.animation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function fadeInDownAnimation(options?: IFadeInDownAnimationOptions): Anim
4141
transition(
4242
'0 => 1',
4343
[
44+
style({ visibility: 'hidden' }),
4445
...(options && options.animateChildren === 'before' ? [query('@*', animateChild(), { optional: true })] : []),
4546
group([
4647
useAnimation(fadeInDown()),

lib/fading-entrances/fade-in-left-big.animation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function fadeInLeftBigAnimation(options?: IFadeInLeftBigAnimationOptions)
4141
transition(
4242
'0 => 1',
4343
[
44+
style({ visibility: 'hidden' }),
4445
...(options && options.animateChildren === 'before' ? [query('@*', animateChild(), { optional: true })] : []),
4546
group([
4647
useAnimation(fadeInLeftBig()),

lib/fading-entrances/fade-in-left.animation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function fadeInLeftAnimation(options?: IFadeInLeftAnimationOptions): Anim
4141
transition(
4242
'0 => 1',
4343
[
44+
style({ visibility: 'hidden' }),
4445
...(options && options.animateChildren === 'before' ? [query('@*', animateChild(), { optional: true })] : []),
4546
group([
4647
useAnimation(fadeInLeft()),

lib/fading-entrances/fade-in-right-big.animation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export function fadeInRightBigAnimation(options?: IFadeInRightBigAnimationOption
4141
transition(
4242
'0 => 1',
4343
[
44+
style({ visibility: 'hidden' }),
4445
...(options && options.animateChildren === 'before' ? [query('@*', animateChild(), { optional: true })] : []),
4546
group([
4647
useAnimation(fadeInRightBig()),

0 commit comments

Comments
 (0)