Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
How to add animations to a 3rd party library component

I'm using Primeng's Dialog component and I wanted to add an animation to increase its scale when it opens.

Adding a trigger animation to my component works and the CSS style changes in the DOM but the dialog does not change. I'm assuming it's because p-dialog is just the selector, how can I apply it for the div under it?

trigger('expandBox', [
  state('inactive', style({
    transform: 'scale(1)',
  })),
  state('active',   style({
    transform: 'scale(2)',
  })),
  transition('inactive => active', animate('100ms ease-in')),
  transition('active => inactive', animate('100ms ease-out'))
])

<p-dialog
  [@expandBox]='dialogVisibleString'
  header="Meeting Details - {{tileday}}" 
  ...
</p-dialog>

I have had this issue in the pass where I wanted to add animations to a 3rd party component and I've never been sure how to fix it.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!