My angular 7 application, I have the scrolling to see the products from left to right and right to left using this. Scrolling
Each image has the button when ever it is clicked, I have applied the new CSS in typescript (component.ts) as below.
this.appendToSimilar.nativeElement.appendChild(document.getElementById(item.imageId).cloneNode()).classList.add('similar-floating');
Here, I need to pass the inline css instead of class name.
Expectation
this.appendToSimilar.nativeElement.appendChild(document.getElementById(item.imageId).cloneNode()).classList.add('.cssClassName{width:50px, hight: 100px}');
I am sure that .add can be used to add the class name. Anyone help me to add the inline css for above scenario.