how to add css for ::before event in jquery

CSS
how to add css for ::before event in jquery
Source

Also in CSS: