Open warudin opened 6 years ago
+1
ever figure this out?
Unfortunately: no. I stopped using smoothState because I couldn't find a solution for this.
Any element with position:fixed will lose its positioning if you apply a transform to any of its ancestors, which is probably what your FadeInRight animation does when you transition pages in and out. Remove the transform property from its parents and the fixed element will stay fixed.
Hi,
I've got some fixed elements on a website in which I'm trying to integrate smoothState.js. I noticed that elements that have
position: fixed;
are not sticky anymore after a pageload, they seem relatively positioned afterwards although they are still marked assticky
in the debugger.Is this a known problem or could there be something wrong in my code?