Git Product home page Git Product logo

Comments (5)

ThaoD5 avatar ThaoD5 commented on August 16, 2024

Hello @siddris14 ,

Thanks for appreciating Highway;

About your issue, this is absolutely normal that Highway does not manage this by default because this behavior is of your choice and isn't a default behavior.
What you would need to do is load the style file related to the page you are visiting, so for example, on the onEnter event, you would replace the previous style file by the one concerned on the visited page.
This solution would then be JS based, to handle with the events provided in Highway.core ( onEnter, ... ) and to be created by you, for your personal stack. :-)

Hope this helps,
Thao

from highway.

siddris14 avatar siddris14 commented on August 16, 2024

Helle @ThaoD5

Thank you for your response.

Do I need to create a custom renderer in order to have access to the onEnter events..?

Thank you.

from highway.

ThaoD5 avatar ThaoD5 commented on August 16, 2024

You can check here for the core Events, but doing it per-renderer is also an option.

https://highway.js.org/examples/events.html

https://highway.js.org/api.html#renderers

from highway.

siddris14 avatar siddris14 commented on August 16, 2024

Thank you very much @ThaoD5 for your time and assistance.
Let me go through the links you have sent me and revert back to you with the outcome.

Enjoy the rest of your day!

from highway.

siddris14 avatar siddris14 commented on August 16, 2024

@ThaoD5 I hope you are doing well.

I am finding it very difficult to implement the solution you suggested earlier on.
I use Webflow for my HTML / CSS / JS and Vanilla JS / GSAP / THREE.JS for my animations and WebGL effects.

Here is the link to the work-in-progress site I am currently working on https://parisandco.shabaniddrisu.com

I would be very grateful if you can take a look at the structure of the elements. Perhaps that may help you give me a more applicable solution.

Thank you!

from highway.

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.