Skip to main content
Question

Change text on click


Hello,

I am looking to change this WE LOVE GREEN image to these ASCII arts (so in text form as you can see) each time I click on it, there would be a different ASCII arts just like the differents ones you see on my screenshot. The idea is that it ends up like a loop with the WE LOVE GREEN image just like in this Castor & Pollus example : https://empreinte.castoretpollux.com/

Can we do that in Figma ? Thank you for your help 🙂
!

Capture d’écran 2024-05-05 à 13.11.03|401x500

This topic has been closed for comments

2 replies

Raphael_M
  • Power Member
  • 386 replies
  • May 6, 2024

Hi, Anais.

Yes you can do that by merging them into one component and using the change to function.


I tried using an actual ASCII from open source website but when I pasted them, it’s broken so I’ll just go with whatever string.


Amazing, thank you so much !


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings