Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

225
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda