New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page transitions with Barba JS #9
Comments
I don't see your hook code. This should be something like this: barba.hooks.beforeEnter(() => {
cursor.hide();
});
We do not provide technical support. If you have questions, you can ask them here. |
Thanks for the response but I tried using the provided code and it only CSS hide the cursor and on the next page the cursor was hidden and not active. Did you by any chance test it on your environment with Barba JS. |
You should show cursor after page transition is end: barba.hooks.afterEnter(() => {
cursor.show();
}); Also check that the cursor is initialized OUTSIDE a changing container ( <body data-barba="wrapper">
<main data-barba="container" data-barba-namespace="home">
<!-- put here the content you wish to change
between your pages, like your main content <h1> or <p> -->
</main>
<!-- CURSOR ELEMENT SHOULD BE THERE -->
</body> |
I tried to follow your instructions but the plugin automatically added the div mf-cursor cursor, and I changed the classname according to your documentation and the result as below.
Here are all the code on the js file.
Kindly advise. |
When i click on a link to the next page the cursor doesn't disappear.
This hook code doesn't remove the cursor on page transition.
barba.hooks.beforeEnter(()
Kindly advise how to fix this, if possible provide a fix here to enable other users see it.
Also you should have a Slack or discord community where users like me ask questions and get help from the community.
The text was updated successfully, but these errors were encountered: