I am trying to change 0.3s for ${index / 7 + 0.3}s. It´s a formula
animateLinks() {
this.navLinks.forEach((link, index) => {
link.style.animation
? (link.style.animation = "")
: (link.style.animation = 'navLinkFade 0.5s ease forwards ${index / 7 + 0.3}s');
});