constructor(object, {
        threshold = 50
    } = {}) {
        super();

        this.object = object;
        this.threshold = threshold;
        this.hoveredIn = false;

        this.initHTML();

        this.enable();
    }
@author pschroen / https://ufo.ai/

Based on https://gist.github.com/jesperlandberg/66484c7bb456661662f57361851bfc31