Hi @SandraBe,
I’ve been struggling a lot with triggering jQuery events in the past, maybe this will help you as well.
Try to put your script within the following script wrapper:
var Webflow = Webflow || [];
Webflow.push(function () {
// DOMready has fired
// May now use jQuery and Webflow api
});
Maybe this article will also be helpful for you the walk through, to get a better understanding how to add custom code to your Webflow site:
If this doesn’t fix it for you, try to add your Webflow Share Link, so it becomes easier for the community to offer help: