Mike Cronin
1 min readAug 5, 2019

Responding on mobile sorry if this is weird formatting. Yes, if you already use className for styling, simply use a data attribute instead. It would give you the exact same effect. I just liked using className because i felt it read nicely. Does that work?

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response