-
Hi there, Yes, in the Simple theme, actually, when I scroll down, the menu appears smoothly (translation). But when scroll up, it disappear instantly. (last version of macOS and iOS). Any idea? :) |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
try I changed slideDown .5s to. slideDown 2.5s |
Beta Was this translation helpful? Give feedback.
-
I've tried it: it only slow down the appearance of the menu when we scroll down. My problem is when I scroll up: it disappear instantly. You can try it here: https://demo.getpublii.eu/themes/simple/v3/ |
Beta Was this translation helpful? Give feedback.
-
I see. Maybe it’s a good idea to ask this question a CSS forum? According to chatGTP the CSS should work for Chrome and Safari |
Beta Was this translation helpful? Give feedback.
-
Finally I found a simple solution! The original Simple Theme is also using javascript to add/hide a In the https://labs.semplice.com/headroom-js page, there is a link to the solution https://help.semplice.com/hc/en-us/articles/360028553851-Hide-reveal-sticky-navigation-on-scroll Here is how I've adapted it to Simple Theme: 1 - Load jQuery by adding custom HTML in Head:
2 - Add this custom HTML to Footer:
3 - Add this custom CSS:
|
Beta Was this translation helpful? Give feedback.
-
Hi, When scrolling down, the The Alternatively, instead of adding jQuery - which would go against Publii's principles of super-speed 😊 - you can ask ChatGPT to modify the beginning of script.js (which you’ll later need to minify) to include the .hidemenu class with just a few lines of code and the corresponding CSS for animation or transition. Cheers! |
Beta Was this translation helpful? Give feedback.
Finally I found a simple solution!
The original Simple Theme is also using javascript to add/hide a
.sticky
class when scrolling.In the https://labs.semplice.com/headroom-js page, there is a link to the solution https://help.semplice.com/hc/en-us/articles/360028553851-Hide-reveal-sticky-navigation-on-scroll
Here is how I've adapted it to Simple Theme:
1 - Load jQuery by adding custom HTML in Head:
2 - Add this custom HTML to Footer: