Hi,
My goal is to have a blog page that includes a series blog posts, each with an animated SVG featured imaged controlled via javascript along with a summary of the blog post. I’m hoping this same javascript file would animate the banner when someone clicks on the article. My ideal solution would be an Advanced Custom Field that links to a small script file that is pulled up by both the blog page and the post page.
I have tried manually adding a script the page as an HTML block via gutenberg but the summary does not include this code on the posts page. Additionally, this script doesn’t seem to inherit the jquery and greensock libraries I’m using in other codes.
Would welcome any insight into this challenge. Thank you in advance.