Giter Site home page Giter Site logo

Comments (3)

extrabright avatar extrabright commented on May 22, 2024

Hi,

Could you please give me more details about how did it happen? And what exactly are you trying to achieve?

from argon-design-system.

randallmlough avatar randallmlough commented on May 22, 2024

There's a couple things that need to be changed to fix the weird scrolling of the navbar.

  1. add the fixed-top class to the navbar
  2. Remove the positioning on the .navbar-transparent class – it's not need for this use case and it causes the conflict with .fixed-top
  3. This one is more personal preference – change the headroom offset to 1 or close to it in argon.js file.

Doing the above will give you a much smoother scrolling navbar

from argon-design-system.

rarestoma avatar rarestoma commented on May 22, 2024

Hi @wefohubi,

Thank you for working with our products and thank you for working with our products.

To customize the trigger you have to change the offset of the headroom in the argon.js file. This is placed right after the declaration of the headroom:

var headroom = new Headroom(document.querySelector("#navbar-main")

I hope it helps.

All the best,
Rares

from argon-design-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.