Streaming live at 10am (PST)

Need help to create overlay animation in CMS collection list

Hey community

I am trying to create an overlay interaction that works a bit like in this example (I mean the opening & closing animation when you click on one of the moving letters):

I want to achieve this by using a CMS collection list so I can use title, text, image etc. for the teaser and the overlay.
I came to the point where the overlay opens perfectly when I click on the teaser. So far so good.
The problem now is that I want the “back”-button in the overlay to trigger the closing animation.

Since I selected the “Author Wrapper” as the trigger for the opening animation so that all children of it are affected, the trigger (Author Wrapper) fills the whole window when the overlay opens. So when the overlay is opened and I click anywhere in the overlay, the “Author Wrapper” gets triggered and the opening animation starts again.
So to prevent this I created an animation for the 2nd click on “Author Wrapper” that closes the overlay. (Thats the current state of the page)
It works fine but now I can not click on the social media icons in the overlay without triggering the closing animation of the overlay.

So there are two things I need your help to fix the problem:

  1. How do I get the trigger of “Author Wrapper” to deactivate when the overlay opens so that when I click anywhere in the overlay the trigger of “Author Wrapper” doesn’t start the opening animation again?
  2. How can I get the “Author Close Button” to close the overlay when I have to set the animations on “Only children with this class”?

Sorry for the long question :wink: If you need more information, feel free to ask :slight_smile:

Published Site:
Project share link:

Is there anyone who had a similar approach to mine? I’m really interested if this could work but I am stuck at this moment.
Anyone that could help me out?