Add And Remove Styles on Lightning Components
It is possible to add and remove styles on Lightning components or element during runtime. To retrieve the class name on a component, use component.find('myCmpId').get('v.class'), where myCmpId is the aura:id attribute value and the class…