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

136
Vistas
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
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