@mvaneijgen thanks for the support, heureka issues are fixed when we are working with angular we should use import and resgisterPlugin part which solved the issue,
line number 3 and line number 16 fixed the issue,
thanks for the support hope the reason for this topic is fixed, let me mark as complete
import { Component, OnInit } from '@angular/core';
import gsap from 'gsap';
import ScrollTrigger from "gsap/ScrollTrigger";
@Component({
selector: 'app-recent-work',
templateUrl: './recent-work.component.html',
styleUrls: ['./recent-work.component.scss']
})
export class RecentWorkComponent implements OnInit {
constructor() { }
ngOnInit(): void {
gsap.registerPlugin(ScrollTrigger);
const container = document.querySelector(".recent-work-wrapper")
const scrollBox = gsap.timeline({
scrollTrigger: {
trigger: container,
start: "top 80%",
end: "bottom 20%",
toggleActions: "restart none none reverse",
markers: true,
scrub: true,
}
})
scrollBox.to(container, {
scale: 0.8,
})
}
}