Hey, y’all!
I’m trying to see if there’s a way to pin an element to a specific word in a block of text so that the element follows the word when the lines of text break, causing the position of the word to change. I’d like to create a strikethrough effect on hover that has some grit to it using a PNG, instead of the stark square default.
For example here, when you hover on “BRANDING”. . .
. . . this PNG would appear (via a hover interaction that affects the image opacity)
Right now the only way to do it is to have the text set to a fixed size so it can’t break, but that severely lacks the same impact of wall-to-wall text.
Does anyone know how I might achieve this?