DEV Community

Cover image for Selecting and manipulating CSS pseudo-elements such as ::before and ::after using JavaScript (EASY WAY)

Selecting and manipulating CSS pseudo-elements such as ::before and ::after using JavaScript (EASY WAY)

Ridhik Govind on December 05, 2020

So this title you are looking at - Yes its an actual stackoverflow question.The question has 980 upvotes and it's top answer has 723 upvotes. Then ...
Collapse
 
rjitsu profile image
Rishav Jadon

Wow this is genius! I could never think of this🤯. Amazing ridhik👍

Collapse
 
ridhikgovind profile image
Ridhik Govind

Hehe thanks Rishav ;-) . It took me a day to figure this trick out but it was worth it I guess.

Collapse
 
stehlampe2020 profile image
Stehlampe2020 • Edited

On SO you can post answers without rep restriction.
What users on SO can do without rep restrictions: ask, answer and edit.
The only restriction is when the question is too active, I think when it has more than ten answers or such...

Collapse
 
moeini profile image
seyed ali moeini

wooooooooow

Collapse
 
ridhikgovind profile image
Ridhik Govind

Heheh ! ;)

Collapse
 
michael_amo profile image
Michael Amo

Wow, this article really helped me a lot.🤟🏾

Collapse
 
ridhikgovind profile image
Ridhik Govind

Wohoo !!

Collapse
 
nard00 profile image
Nard00

Your solution is amazing. I really appreciate this tutorial.

Collapse
 
ridhikgovind profile image
Ridhik Govind

Glad you found it super useful :)

Collapse
 
sidanand67 profile image
Sidharth Anand

damn.. it was very helpful.
Thanks for this.