Streaming live at 10am (PST)

Replace image on click


#1

Hello.

how can i replace image on click?

thanks


#2

Do you want to replace the image when you click on it or when you click on another button?


#3

Both would be nice smile I'm actually a new user and i will have to get familiar with both ways. But "click on another button" is the important one here.


#4

You can use Interactions to achieve this. Take a look at the docs here: http://help.webflow.com/interactions


#5

I thought so, but when i add a style to an image i can't target it in "affect other elements" section.


#6

Redo your element and think about this ahead. Try to set the class on your element at the lowest level possible. If you're just adding a class on top of all the existing ones, most likely it does not work.


#7

So I cant target nested elements at all?


#8

Not at the moment, but we hope to add it soon.


#9