Streaming live at 10am (PST)

How to target :active state?


#1

Does anyone know how to select the :active state for links, link-blocks etc.?

In my case I want a link block to have a certain background image and when a user clicks on it an action is triggered and the background image should change and stay like that until the user clicks again on it.
With the "pressed" or "focused" state it's not working.

Can anyone help me with that?


#2

Hi @Duskolo, you may be able to use interactions to emulate this. Not exactly the solution you asked for, but if you only need the effect, this may help:

Demo: https://webflow.com/design/demokit?preview=72388b288a26874be319ca1f7412d4eb
Page Title: Change Element on Click

Hope this helps!


#3