I’m having a bit of an issue with my floating bubble interaction. When the page finishes loading, the bubble is supposed to start bouncing around off the edges of its parent div (the bubble-w div). Width-wise, I want the bubble to bounce off the edges, even as I resize the browser window. Height-wise, I want it to bounce off right where the bubble-w div meets the next div (so basically the margin between the two divs where the background color changes).
I have tried all sorts of units combinations. Either I seem to be able to make the interaction work as I wish width-wise, or height-wise, but I can’t seem to make both function properly at the same time.
I would greatly appreciate your help with this. Thanks!!