you need to wrap your function in a setTimeout func. "Invoking setTimeout with a callback, and zero as the second argument will schedule the callback to be run asynchronously, after the shortest possible delay - which will be around 10ms and the JavaScript thread of execution is not busy." import { Component, OnInit } from '@angular/core'; import {gsap } from 'gsap'; import ScrollTrigger from 'gsap/ScrollTrigger'; gsap.registerPlugin( ScrollTrigger ); @Co
    • Thanks
    2