Goal: I wanted the intro text and must do text hidden and to only be activated when the users requested it. I used Google Ai web browser to achieve this.
First prompt (initial short version): “So the item to appear has css class hover-description and its inside the container (the trigger) which has css class trigger-container. so the item (container) when it appears it will be out of the viewers view. i need when the user interacts with the trigger for it to have an anchor roll effect meaning to atomically scroll up to the appearing item (overall to be in center of the viewport screen with all devices…pc , mobile, ipad)”.
Another prompt: “I do want to add this scenario. If the user clicks/taps on the peeking content on the right for pc/tablet (the next trigger) don’t have the appearing container try to appear. So basically the browser needs to ignore this command”.
Another prompt: “Also add in if user is scrolling down and stops and the trigger container (content area) is not in center view (they can’t read anything) and they tap don’t let the appearing container appear until the trigger container is 100% in viewport (auto anchor to center the trigger container). After this tapping again in the content area (or plus icon) will have the appearing container appear”.
Final prompt (after 5 hours of conversations – shortened): “Also when they leave it (click/tap out) instead of leaving where they are on the screen we need to force them to view the content and slide into center view of the screen (as this can be a mistake tap). If they click or tap above the appearing container (or anywhere else above) let it disappear as this may indicate they are no longer interested”.
Google Ai code given after final prompt:
How i solved this / got to this point?: I gave the Ai multiple scenarios and did multiple tests. When something didn’t work i had to be very detailed in my prompt of the issue.
» Overall this fix is not as overwhelming as the old layout. The user can understand the stop (even without clicking the plus icon) in just a quick glance. The information is packed together efficiently rather than being spread out. See it live ↗
» Tourists arriving in NYC are often overwhelmed and stressed about what to see. I believe if you give someone too many options they won’t even look. But if you give a couple options (3 or 2) they will look because their mind is at ease (Hick’s Law). The fix gives the tourists a more narrow idea (while also being more specific) and helps the page with loading times while also feeling professional in design. See it live ↗