Question: Cms field as a class with interaction?

Hi,
In custom code I am using the name as a class of my CMS items in a HTML Embed element.
My question is can I set an Interaction on this class?


I need to do this because when you click on this button in this CMS Collection, it needs to make all elements with this class name be visible in other CMS Collections.

Thanks in advance!
Matt