Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

336
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda