I can get the transition to work, and the width (using a condition with 'Current page width <= bla), but I’m not sure how I can get it to stick to the bottom?
I was hoping to avoid using a Floating Group, as on desktop I want this popup to be a typical popup style i.e. a box in the middle of the screen.
Would I need to use custom CSS for this, or is there a way in bubble.
Before I implement, I had a thought (I’m new so still figuring this out)… Is there any particular ‘benefit’ to using a popup over say a Group, which I choose not to display on page load. I’d attach to a button and have a workflow with ‘Element Actions > Animate’ and point to the Group I intend to display?
I could also then add a group in the background (but on top of my UI) that covers the screen with transparency so that it darkens everything behind my popup group?
I’ve got it working now using your code, but I think the issue is going to be with varying phone sizes, and varying popup sizes (some will have 1 action, others up to 5/6), it could become very finicky as the ‘top’ css code needs to be pretty accurate…
Well the “top” is calculated as the viewport - the popup’s fixed height. So as the device height changes it takes that into account. Unless do you mean something else?
I might have to look at a floating group somehow - I can see in this forum bubble manages to have a group pinned to the very bottom, which stays relative to the ui as it grows and shrinks
A popup for desktop users, a floating group for mobile users. Just set a conditional that will make each one visible if the page width is more or less than 500px (i chose 500px for no particular reason).
I’ve fiddled alot with applying CSS to almost every Bubble native element and nothing is as frustrating as a Bubble popup element. I often get different results between mobile and desktop.
If you insist on the CSS route you can take @tylerboodman’s code and replace the 300px with a dynamic expression. In this case it will be something like