Solution Jloafs Posted October 15, 2022 Solution Share Posted October 15, 2022 Hi guys. I'm attempting to change the text content of a pseudo element on scroll by replacing the text using a data attribute on each section. It isn't working and I suspect the content property isn't supported. Is there a simple solution to this? Many thanks in advance. Link to comment Share on other sites More sharing options...
Rodrigo Posted October 15, 2022 Share Posted October 15, 2022 Hi @Jloafs, I think you found the solution to your issue? Since you marked the thread as solved and removed the codepen link. If you did that's great to hear 🥳 If you have any other questions, let us know. Happy Tweening! Link to comment Share on other sites More sharing options...
Jloafs Posted October 15, 2022 Author Share Posted October 15, 2022 Thanks Rodrigo. Yeah, not quite - I didn't find a way to implement via the content of the pseudo element but went in a different direction using innerHTML which worked for my needs. Thanks for the follow up. 1 Link to comment Share on other sites More sharing options...
ClaryP Posted April 11 Share Posted April 11 I'm also looking for documentation on this. Thanks! Link to comment Share on other sites More sharing options...
ClaryP Posted April 12 Share Posted April 12 Never mind; figured it out! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now