I have the following animation:
animations: [
trigger('moveSomething', [
state('true', style({left: '{{leftPosition}}' , opacity: 0.5}), {params: {leftPosition: 0}}),
transition('* => *', animate(300))
])
]
And this is the html
[@moveSomething]="{value: shouldMove, leftPosition: leftPosition}"
I know for sure the animation is triggered because I see the opacity changing. I read a bunch of documentation and answers on stack overflow and can't seem to see the problem.
I want to mention that the leftPosition
is an integer, but I also tried with a variable that was string that was in this form 150px
, but without success.
Any thoughts of why this isn't working?