Streaming live at 10am (PST)

Body width increases when elements are moved on the x-axis?


#1

I’ve been trying to create an interaction in which 2 different divs slide in from different sides. However, when I do this, the divs that are set to be x= 700px end up increasing the entire width of the body so that when you scroll, the scrolling also goes off to the side.

Does this make sense? How do I stop this? And, in general, what’s the best way to set up this interaction with IX2


#2

The likely solution is to wrap a scene you are animating with the div with the overflow set to “hidden”. The content will not expand the body this way.


#3

That seems to have fixed it, thanks!