• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

206
Views
Cómo retrasar la animación del elemento secundario enésimo en Vue JS

Quiero la animación de retraso para otro elemento directamente por Vue Js, no css.

En este momento, Vue espera hasta que todos los elementos se hayan renderizado y todos aparezcan al mismo tiempo. ¿Cómo retrasar el cambio de this.animated = true ?

Artículo.vue

 <template> <transition name="animation-fade"> <div v-if="this.animated"> {{this.itemProp.content}} </div> </transition> </template> <script> export default { name: 'Item', props: { itemProp: Object, }, data: function() { return { animated: false, loading: true, }; }, methods: { delayedShow: function(delay) { setTimeout(this.toggleItem, delay) }, }, toggleItem: function() { this.animated = true; }, mounted: function() { this.delayedShow(500); }, } </script>

Los elementos se definen en otro componente y cada paso por accesorio al modelo de elemento.

Ayudame por favor.

about 3 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error