Skip to content

Instantly share code, notes, and snippets.

View veekthoven's full-sized avatar
🏠
Working from home

Victor Abbah Nkoms veekthoven

🏠
Working from home
View GitHub Profile
import Errors from './Errors.js'
class Form {
/**
* Create a new Form instance.
*
* @param {object} data
*/
constructor(data) {
this.originalData = data;
@veekthoven
veekthoven / loading-spinner.css
Last active February 24, 2021 13:14
"Stole" it from Bulma's source code. It adds a loading spinner to buttons to give users feed back.
// Hat-tip to bulma
.loader {
color: transparent !important;
pointer-events: none;
position: relative;
}
.loader:after {
animation: spinAround 500ms infinite linear;
border: 2px solid #fff;