Topic: Resizing flipping cards

ipeak pro asked 6 years ago


Hi,I want to resize the flipping card height but it seems the only way to do this is to change .card-wrapper globally in the styles.scss. Also this method allows only static resizing. Is it possible to resize it dynamically, preferably in the angular component?

Damian Gemza staff commented 6 years ago

Dear ipeak, If you want to change .card-wrapper height dynamically, you can try Renderer2. He has addStyle() method to changing css styles dynamically. You could use it in some cases. I don't know other option to change dynamically styles in Angular. Best Regards, Damian

Duncan pro commented 6 years ago

I am trying to do this as well. What is this "Renderer2" that you mention?

Damian Gemza staff commented 6 years ago

Dear Duncan, Renderer2 is a class in Angular, which allows you to manipulate styles on DOM Element. Here you can read more about it: https://alligator.io/angular/using-renderer2/ Best Regards, Damian


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No
Tags