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

879
Views
Cómo crear desplazamiento fijo en Locomotive Scroll en Next.js

Actualmente estoy usando Locomotive Scroll con NextJS para implementar un desplazamiento suave. La aplicación web que estoy desarrollando actualmente con NextJS requiere una sección de desplazamiento fijo, pero desafortunadamente, no puedo encontrar ninguna documentación sobre cómo implementar el desplazamiento fijo.

Cuando trato de usar el fragmento de código del sitio web de desplazamiento de la locomotora, el desplazamiento en sí se desactiva. Aquí está el fragmento de código:

 <section class="c-section -fixed" data-scroll-section data-persistent> <div class="o-container" id="fixed-elements"> <div class="o-layout"> <div class="o-layout_item u-2/5@from-medium"> <div class="c-section_infos -padding" data-scroll data-scroll-sticky data-scroll-target="#fixed-elements"> <div class="c-section_infos_inner" data-scroll data-scroll-offset="200"> <h3> 04. <br /> Fixed elements </h3> <div class="c-sections_infos_text u-text"> <p> Create slides that stick and untick to the viewport while scrolling through. </p> </div> </div> </div> </div> <div class="o-layout_item u-3/5@from-medium"> <div class="c-fixed_wrapper" data-scroll data-scroll-call="dynamicBackground" data-scroll-repeat> <div class="c-fixed_target" id="fixed-target"></div> <div class="c-fixed" data-scroll data-scroll-sticky data-scroll-target="#fixed-target" style="background-image:url('dist/images/locomotive04.jpg')"></div> </div> </div> </div> </div> </section>

Realmente aprecio cualquier ayuda que pueda proporcionar.

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!