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

194
Views
Hacer que el control deslizante jQuery cambie las propiedades div

Soy un poco nuevo en esto y estoy usando el complemento veinte veinte de ZURB . Lo hice funcionar y todo, pero quiero que el control deslizante cambie mis propiedades de .hero (de display: block; a display: none; ) para hacer que .hero2 aparezca en su lugar cuando el control deslizante se lleva completamente a la derecha, y .hero3 aparece cuando se lleva todo el camino hacia la izquierda.

Creo que necesito usar o invocar el var minMaxNumber o el var sliderPercentage del archivo jquery.twentytwenty.js :

 var minMaxNumber = function(num, min, max) { return Math.max(min, Math.min(max, num)); }; var getSliderPercentage = function(positionX, positionY) { var sliderPercentage = (sliderOrientation === 'vertical') ? (positionY-offsetY)/imgHeight : (positionX-offsetX)/imgWidth; return minMaxNumber(sliderPercentage, 0, 1); };
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!