Use plugin transform styles to push a sticky nav to the right
-
Hello,
I’m have a problem with my sticky header transform when the canvas sidebar kicks in.
The canvas sidebar is configured to push the content to the right. This is working fine.But the GP Sticky header is not pushed to the right properly. In order to chang that, I use the following CSS
.ocs-sidebar-active .navigation-stick:not(.gen-sidebar-nav) { transform: translateX(270px); transition-duration: 0.36s; }
But this transformation is not as smooth as the canvas standard when no sticky header is active.
Repo steps: (Open Site with mobile view port)
Site URL: https://brewmee.ch/shop/A: Klick on “Produkte filtern” with no scroll -> Very smooth push to the right.
B: Scroll on the page and press then “Produkte Filtern” -> As you can see, this is not the same smooth transformation because this is coming from the CSS code above. Without these CSS code, the sticky header makes no push to the right. (You can see this here: https://streamable.com/2vwmmi)
Question is: Can i somehow use the same CSS or Script and include there the sticky header class? If so, then I can use the same code for close the canvas sidebar. This would be very nice!
Thanks for your feedback & cheers
- The topic ‘Use plugin transform styles to push a sticky nav to the right’ is closed to new replies.