why is content attr(data-content) not working in my codepen?

5 Replies
Jochem
Jochem2y ago
you're selecting the last span, so attr is accessing data-notification on that span, not on the wrapping .magic-text which is where the attribute lives I really like the hover effect, it's excellent for this style of menu
Astrobyte
AstrobyteOP2y ago
thank you so much
b1mind
b1mind2y ago
Totally stealing this idea for my folio (og site: https://www.poppr.be/en)
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Jochem
Jochem2y ago
not sure what you mean? data attributes have nothing to do with accessibility because they're by definition developer-defined
Want results from more Discord servers?
Add your server