.state-button { margin-left: -10px; color: #aaa; cursor: pointer; -webkit-transition: all 350ms; transition: all 350ms; } .state-button.active { color: #000; cursor: default; -webkit-transition: all 350ms; transition: all 350ms; } .state-button:before { content: ''; display: inline-block; width: 6px; height: 1px; background-color: #f39d41; margin: 0 4px 5px 0; border-radius: 5px; opacity: .4; -webkit-transition: all 350ms cubic-bezier(0.86, 0, 0.07, 1); transition: all 350ms cubic-bezier(0.86, 0, 0.07, 1); } .state-button.active:before { margin-bottom: 2px; height: 6px; opacity: 1; -webkit-transition: all 350ms cubic-bezier(0.86, 0, 0.07, 1); transition: all 350ms cubic-bezier(0.86, 0, 0.07, 1); }