Streaming live at 10am (PST)

Connect buttons

Hello!

I have a CMS item that is shown as an article, and also as a thumbnail on my homepage. On both the article and the thumbnail there is an “add to calendar” button that I want to change color when it’s been clicked.

Is there a way to conntect/link both of these buttons so when one is being clicked the other one is also being affected (changing color)?

I know how to make the animation, but I don’t know how to connect the buttons. The original button color comes from CMS BG-color from article/category.

I’ve added a link to a basic test-site that has two different divs just to show the idea, I’m not done with the website I’m describing :slight_smile:

Any ideas? Thanks!


Here is my public share link: https://preview.webflow.com/preview/testing-085b3f-bbb6513f2e-94b4da0f76323?utm_medium=preview_link&utm_source=designer&utm_content=testing-085b3f-bbb6513f2e-94b4da0f76323&preview=e03c47e943a2464d3e0df0aa31b21cdb&mode=preview

@vwis If both button have the same class name:

– go to your interaction and switch to “Class”

image

Thanks Matthias! The buttons do have the same class, but they are connected to different CMS items.

I would explain it as a like button. If you press the like button on the article-button, the button on the thumbnail should also show that you have already liked that article.

I’m thinking the buttons need to be connected by some kind of CMS ID or something. Maybe I need some custom code?