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

219
Views
Change Revolution Slider's height for mobile devices through initialization

Please refer to the top hero section on this page for the example of Revolution Slider.

It's initialization code in this javascript file is:

function dz_rev_slider_5(){
    if(dzQuery("#rev_slider_11_1").revolution == undefined){
        revslider_showDoubleJqueryError("#rev_slider_11_1");
    }else{
        dzrevapi = dzQuery("#rev_slider_11_1").show().revolution({
            sliderType:"standard",
            sliderLayout:"fullscreen",
            dottedOverlay:"none",
            delay:9000,
            navigation: {
                onHoverStop:"off",
            },
            responsiveLevels:[1240,1240,778,778],
            visibilityLevels:[1240,1240,778,778],
            gridwidth:[1640,1640,778,778],
            gridheight:[768,768,960,960],
            lazyType:"none",
            parallax: {
                type:"mouse",
                origo:"enterpoint",
                speed:400,
              speedbg:0,
              speedls:0,
                levels:[5,10,15,20,25,30,35,40,45,46,47,48,49,50,51,55],
            },
            shadow:0,
            spinner:"spinner0",
            stopLoop:"off",
            stopAfterLoops:-1,
            stopAtSlide:-1,
            shuffle:"off",
            autoHeight:"off",
            fullScreenOffsetContainer: "",
            disableProgressBar:"on",
            hideThumbsOnMobile:"off",
            hideSliderAtLimit:0,
            hideCaptionAtLimit:0,
            hideAllCaptionAtLilmit:0,
            debugMode:false,
            fallbacks: {
                simplifyAll:"off",
                nextSlideOnWindowFocus:"off",
                disableFocusListener:false,
            }
        });
    }
}

I need to reduce the height of the slider by 30% for mobile devices. And by following this answer, I tried changing the value of gridheight from [768,768,960,960] to [768,768,672,672]. I also tried changing the value of autoHeight from "off" to "on". However, those tries do not work.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

I guess all it needed was fullScreenOffset: "30%", which I found here: https://www.themepunch.com/revsliderjquery-doc/slider-layout/

Image of the result:

result

about 4 years ago · Santiago Gelvez Report
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!