      }
      searchBar.addEventListener("input", filterTemplates);

      //script for animation type one after other
      const texts = [
        "Typing Animation",
        "Gradient Text",
        "Neon Glow",
        "Wavy Text Animation",
        "Zoom on Hover",
      ];

      let currTextIdx = 0; // Index of current string in the array
      let charIdx = 0; // index of current char currently being typed /deleted
      let isDelete = false;

      const speed = 100; //type/delete speed
      const