/** * Example loading state animations on the button. */ /* @-webkit-keyframes sk-scaleout { 0% { -webkit-transform: scale(0) } 100% { -webkit-transform: scale(1.0); opacity: 0; } } @keyframes sk-scaleout { 0% { -webkit-transform: scale(0); transform: scale(0); } 100% { -webkit-transform: scale(1.0); transform: scale(1.0); opacity: 0; } } @keyframes comeAndGo { 0% { opacity: 0; } 50% { opacity: 1.0; } 100% { opacity: 0; } } .buttonLoading, .buttonLoading:disabled, .buttonLoading:hover { transition: none; font-weight: normal; } .buttonSuccess, .buttonSuccess:disabled, .buttonSuccess:hover { } .buttonSuccess::before { content: '✓'; display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 3px 0px; animation: comeAndGo 2s forwards; background: rgb(51, 204, 51); color: white; } .buttonLoading::before { content: ''; display: inline-block; width: 40px; height: 40px; position: absolute; top: 0px; background-color: #333; border-radius: 100%; -webkit-animation: sk-scaleout 1.0s infinite ease-in-out; animation: sk-scaleout 1.0s infinite ease-in-out; } .buttonError, .buttonError:disabled, .buttonError:hover { } .buttonError::before { content: '×'; display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 3px 0px; animation: comeAndGo 2s forwards; background: rgb(250, 100, 100); color: white; } */