Hi all,
I was wondering what is the best approach, on desktop views, for creating a slide-in/out modal that takes up a portion of the page width and also pushes the main page across.
On mobile we can push pages out/back into view but on desktop the only native option is for the overlay to slide-in and cover the content.
The effect I often create, is commonly found on eCommerce websites, where a modal or Minicart might open and push the page across when open. Then slide it back when it’s closed.
How I’ve always handled this is to have 2 artboards. One as the main page and a duplicate which has the content moved the the modal/minicart visible. For the ‘minicart’ to slide-in smoothly with Smart Animate. I need to add the minicart to the initial artboard - but nudged off canvas. Like so…
This does work, it jumps a bit if you scroll down but I haven’t found a better way yet. Any ideas?
I also tried another version where the Artboard has auto-layout which was problematic with the fixed elements but it kinda works - but jumps more than the original.
Look forward to hearing some peoples thoughts!