    });
        }

        // === REQUIRED: TIMELINE CREATION ===
        function createTimeline(params) {
            // Kill existing timeline to prevent memory leaks
            if (masterTimeline) masterTimeline.kill();

            // Create timeline with standard autoloop pattern
            const tl = gsap.timeline({
                repeat: params.autoloop ? -1 : 0,
                repeatDelay: params.autoloop ? 1 : 0 // 1 second delay between loops
            });

            // === ADD YOUR ANIMA