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

249
Views
How to reduce the time of the transition of the hovering header when scroll

in this site https://gptrading.it/ i would like to change the time of the transition of the header background hover on scroll. It starts between like two scroll, i would like to make it start right after the first scroll. How can i achive that?

Thank you

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you provide us with a code we can help you. Otherwise it is impossible to know what are you doing exactly.

In advance, it seems that is something related to window.offset() in your javascript function.

EDIT

I have search on your project through JS files. It seems that you are creating a wordpress project. So often the themes you download to install on your wordpress include a theme.js. Here is the path of your theme JS file:

https://gptrading.it/wp-content/themes/techno/assets/js/theme.js?ver=3.2.4

I paste following the code that this file is using to turn the navigation bar into sticky:

// 6.EM STIKY NAV
var headers1 = $('.trp_nav_area');
$(window).on('scroll', function () {

    if ($(window).scrollTop() > 200) {
        headers1.addClass('hbg2');
    } else {
        headers1.removeClass('hbg2');
    }

});

Just search on this file and replace the value $(window).scrollTop() > 200 with your preference (as you say 0). Remeber that this value is mesured in PX.

about 4 years ago · Juan Pablo Isaza 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!