Search the Community
Showing results for tags 'best practices'.
GSAP noob over here... and loving it so much! I was just wondering if anyone has established beautify setups to share? I've grown accustomed to using the order of CSS properties I stole from Bootstrap and the OCD in me is itching for something similar in GSAP. eg for CSS order of properties: 1) Positons (absolute, top, left, z-index etc) 2) Box-model (block, padding, margin, etc) 3) Layout (flex & grid type of stuff) And so on... It's worth noting for CSS I just used a feature in PHPStorm that allows you to create a list of the order you want. So I'm not sure if the s
Are you guilty of any of the most common mistakes people make in their ScrollTrigger code? Creating to() logic issues Nesting ScrollTriggers inside multiple timeline tweens Using one ScrollTrigger or animation for multiple "sections" Forgetting to use function-based start/end values for things that are dependent on viewport sizing Start animation mid-viewport, but reset it offscreen Creating ScrollTriggers out of order Loading new content but not refreshing Why does my "scrub" animation jump on initial load? Or my non-scrub animation start playi
With over 100,000 posts in the popular GreenSock forums, we've noticed some common mistakes that you'd be wise to avoid. We threw in a few tips as well. Here is a summary of the mistakes: Creating from() logic issues Using fromTo() when from() or to() would work Not setting ALL transforms with GSAP Not using xPercent and yPercent Recreating animations over and over Adding tweens to completed timelines Not using loops Importing things incorrectly Using the old/verbose syntax Creating from() logic issues It's usually smart to
So, can I deliver banner files gzipped? I have an ad that we converted with Swiffy; it looks amazing, and right there, in the Swiffy output window, it shows the file size of the banner as 88k -- but it's the gzipped file size. The raw file size of the html when I download it, is 346k. I'm pretty sure I can use gzipped files in Doubleclick, but what about other media people/publishers? Anyone have experience with this?