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

153
Views
i am using vue 2 and AOS library i am trying to restart the animation for certain div on button click

i am using vue 2 and AOS library I am trying to restart the animation for a certain div on a button click. tnx for your answers

   <template>
     <div>
      <div class="all-items">
        <div class="item" data-aos="fade-up">1</div>
        <div class="item" data-aos="fade-down">2</div>
        <div class="item" data-aos="fade-right">3</div>
        <div class="item" data-aos="fade-left">4</div>
      </div>
      <button type="submit" @click="refrashAnimation">
        refrash animation for all-items
      </button>
     </div>
    </template>
    <script>
    import AOS from 'aos'
    import 'aos/dist/aos.css'
     export default {
      created () {
       AOS.init()
     },
     methods:{
      refrashAnimation(){
       AOS.refrash()//for only elements under all-items class
      }
     }
    }
   </script>
about 4 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 Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!