Uploaded March 2025 | Updated September 2026, 1 week ago
Today I'll walk you through practical use-cases for xPercent.
xPercent positions an element based on its own width.
I'll show you the hidden super-power of combining x and xPercent values in your tweens.
If you love GSAP and want to learn everything about it, check out my comprehensive GSAP course bundle
creativecodingclub.com/bundles/creative-coding-club
Demo 1: Basic xPercent
codepen.io/snorkltv/pen/NPWwvjy?editors=0100
Demo 2: Responsive Container Width
codepen.io/snorkltv/pen/dPydEGG?editors=0110
Today I'll walk you through practical use-cases for xPercent.
xPercent positions an element based on its own width.
I'll show you the hidden super-power of combining x and xPercent values in your tweens.
If you love GSAP and want to learn everything about it, check out my comprehensive GSAP course bundle
creativecodingclub.com/bundles/creative-coding-club
Demo 1: Basic xPercent
codepen.io/snorkltv/pen/NPWwvjy?editors=0100
Demo 2: Responsive Container Width
codepen.io/snorkltv/pen/dPydEGG?editors=0110










