Forum Academy Marketplace Showcase Pricing Features

Not So Stupid JavaScript Tricks: Span Class Fun

Another quite informative video: @d.norkus asked a fascinating question about handling link-like behavior in a text element today. “Could different parts of a humble text element trigger different workflow actions?”

Turns out they could:

For context, see original thread here:


Hi @Keith do you know how i could do this for when a span is held down, sort of like bubble’s pressed condition
I tried showing a shape when an element was pressed to trigger workflow but it didnt work.

I want this function for when a profile image is pressed down to trigger workflow that shows users story, when clicked go to profile.

I think its mousedown, then i will have to set a condition for the span to change it touch down for mobile maybe.