Is there a way to control how pages transition? See below screencapture showing changing pages with a brief flash to white. I want it just to not flash to white and keep the red - is this possible?
I’m curious though if I could do a fade out or slide in or something slightly more fancy? My guess is that it might rely on javascript so it wouldn’t be possible.
Does your entire project have that red background? if so, you could attempt to style .center.view-parent such that it always has the red background. I suspect that “general” always-present container is what you’re seeing flash as one page is removed, but before the next page has fully rendered.
you have to be careful if there are many other styles in that stylesclass tho
if you have you might want to re-add the stylclasses name before the last bracket. because else it could escape some of the styles if the css orders backgroundimage aboce something else
Sometimes, playing with Persistence and the state the views are saved will impact how they look when loading. Not sure if it will help you @pascal.fragnoud but worth a try IMO.
hehe well you can preload styles if you have this issue when changing theme (i think or my pc is to fast to notice) you can preload styles i put this script on my header docked view.
going from dark to dark-cool nolonger flashes white
It actually does make things a bit better.
Good idea, that's a start !
I also made a version where every page is embedded into a main page, and I handle navigation by sending messages with the view path I want to display... I does reduce considerably the flickering, since the background doesn't change anymore, but some other things still flash.
Won't work in my case.
I won't go into details but I'm plugging things into an existing project where theme handling is... quite exotic. It doesn't actually use themes, and barely any css. It's a pain and a half to deal with and maintain, but that's how it is.