Is there a swipe-like view implementation?

Hello

I have a VerticalLayout with some fields in it + a submit button. What I’d like to do is when the user hits Submit, the view swipes left and in pops the next screen. Feels like this is something I could achieve with CSS, or similar, but no idea where to start. Any ideas?

Thanks in advance.


Vaadin TouchKit
includes NavigationManager, a visual effect component that does the exact thing you’re after.
Here
you’ll find some example code showing how it’s used.

Thanks, Juho

I’m new to Vaadin so this might be a silly question - so can you use Touchkit on an ordinary website too? I should have said in the original post this was for a normal site.

NavigationManager should be completely usable in desktop browsers as well as mobile. Depending on the set of browsers you need to support, you might have some compatibility issues, though, so be prepared to do careful testing. Only modern mobile browsers are officially supported, so if you try to use it with something like IE8, it might be that something doesn’t work at all. Or it might just as well be that everything works perfectly fine out-of-the-box.

IE8 is the target browser, really :confused:
But worth a shot at least - thanks!