Current Setup
Hi everyone, I’m having trouble with the mobile version of my portfolio homepage (https://www.gabipinesso.com/). I’m trying to build an animation/scroll effect similar to what Doity.de has on their mobile site. I’d love your feedback on what might be going wrong and how to improve it.
-
Using Wix Studio with a MultiStateBox to display titles (text) + video.
-
Scroll triggers: three elements —
#blacktrigger,#carvaotrigger,#mototrigger. -
Each trigger corresponds to a state of the MultiStateBox:
blacktext,carvaotext,mototext. -
Mobile layout: each trigger is inside a section set to 100vh, stacked vertically (~300vh total).
-
Code: each trigger runs
onViewportEnterto switch the MultiStateBox to the correct state.
Issues
-
Scrolling down works fine — as each trigger enters, the text changes as expected.
-
Scrolling up is the problem — the state often doesn’t switch back correctly.
-
There are “dead zones”: in between sections, no state is properly active.
-
Even with 100vh sections, the trigger doesn’t always align with the screen center as expected.
-
On mobile, the animation feels laggy or jumps between states.
Reference: Doity.de Mobile
-
On Doity’s mobile site, as you scroll, the title/background changes smoothly when the next section reaches the center of the screen.
-
It works both ways (scrolling up or down).
-
No “dead zones” or flickering between states — the effect is smooth and reliable.
Questions
-
Is it possible to achieve this effect reliably with just
onViewportEnter? Or should I use another approach, like detecting when the section crosses the center line of the viewport? -
Would adding an offset to the trigger help? For example, making it active when its top crosses 30-40% of the viewport height.
-
Does anyone have a working code snippet in Wix Studio that achieves this type of animation smoothly on mobile/tablet?
-
Performance-wise: would you recommend using video as a background or as a videobox element for mobile?
What I’ve tried so far
-
Adjusted section heights to 100vh.
-
Removed large margins/padding between sections.
-
Confirmed
multiStateBox10and state names (blacktext,carvaotext,mototext). -
Tried
onViewportLeave, but it became confusing.
Any help, code examples, or layout adjustments you could share would be much appreciated ![]()
Thanks in advance!
