How can one bind the transform: translateX()
style in Angular?
What I've tried:
<div [style.transform]="translateX({{x}})">
and
<div [style.transform.translateX.px]="x">
This should work
<div [style.transform]="'translateX(' + x + 'px)'">
Edit
It seems that it is necessary to bypass XSS protection for this to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With