You can create a class for a element and give it a name and a value for the class. Assign css styles to the element when it is activated with this class. This totally removes the issue of assigning styles to classes on a element but then having to remove those classes on page load with jquery to set the element style to its beginning state.
Big Thanks for This !
http://gluexp.coffeecup.com/cssgrid/pro … class.html
Bootstrap 5 CSS Grid.