Closed 10xjs closed 2 years ago
/to @choumx @ericlindley-g
Thanks for filing this @10xjs !
This is really interesting, and really goes to the boundaries of what AMP is intended for. One pattern to achieve something similar is to combine AMP with PWA, but PWA support isn't universal.
I'd be curious to explore the tradeoffs here to see if it's something that's a good fit for AMP
/cc @cramforce for visibility
I think doing long term evolution in this direction makes sense. I think we should study use cases first to see what the right interface would be.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
As
amp-bind
becomes more powerful, it is becoming possible to create more app-like experiences in amp. A feature that would really augment this would be a method of navigating between different "views". This would unlock native style SAP experiences.Currently this experience can be implemented with an
amp-carousel
that covers the entire viewport.This works but isn't ideal and feels like a complete misuse of the carousel component.
Since the body tag no longer scrolls vertically and instead carousel slide children provide vertical overflow, conflicts with other amp features are expected to arise.
Also, since the carousel is an enhanced horizontal scroll container, there is no way to prevent user from scrolling between views and views cannot be dynamically enabled or disabled.
An
amp-navigation-controller
could work as follows: