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

126
Views
How can I make a screen swipe to next after a specific time in Ionic?

I have 4 screens for home screen. i want the first screen to just automatically swipe to the next after 2sec, and the remaining screens to be swipable. i used swiper for the screens but i cant figure out how to make the first screen swipe to the next after a given time. im very new to programming and new to ionic as well. my code goes like this. i put settimeout to call slidenext after 1000ms inside ngoninit so that it will function upon it loads

export class HomePage {
  config: SwiperOptions = {
    spaceBetween: 50,
    pagination: { clickable: true},
  };
  @ViewChild('swiper', { static: false }) swiper?: SwiperComponent;
    slideNext(){
      this.swiper.swiperRef.slideNext(1000);
    }
  constructor() {}
  ngOnInit() {
    setTimeout(() => {this.slideNext(), 1000})
  }
}
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!