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

335
Visualizações
Why vue transition component is no working

Im triying to show models with transition effect

<template>
<transition name="modal">
    <v-tour v-if="tourType === 'normal'"
        name="myTour"
        :steps="steps"
    />
    <v-tour
        v-else-if="tourType === 'tip'"
        type="tip"
        name="myTour"
        :sticky="true"
    />
    <v-tour 
        v-else
        :type="tourType"
        name="myTour"
    ></v-tour>
</transition>

Here is the style

.modal-enter {
 opacity: 0;
 }
.modal-leave-active {
 opacity: 0;
}
.modal-enter .modal-container,
.modal-leave-active .modal-container {
  -webkit-transform: scale(1.25);
  transform: scale(1.25);
 }

Modals are showing but without transition effect, i tried with mode="out-in" but did not work, what should i do?

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You must add css transition property and css properties you change:

vue docs

i`ll think this must works:

.modal-enter .modal-container,
.modal-leave-active .modal-container {
  -webkit-transform: scale(1.25);
  transform: scale(1.25);
  transition: opacity 0.5s ease;
}

or

...
transition: transform 0.5s ease;
...

if you want to animated all changed props, you need to add all in your transition prop:

transition: all 0.3s ease;
about 4 years ago · Santiago Trujillo Relatório
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