Wavy mood?

~Scroll down~

Object oriented

Oscillator.js allows you to create multiple instances by passing an argument object.

let card1 = new Oscillator({
    box: ".card1",
    color: "#befffe",
    direction: -1,
    frequency: 60
});
card1.start();
let card2 = new Oscillator({
    box: ".card2",
    color: "#ffddbd",
    direction: 1
});
card2.start();
let card3 = new Oscillator({
    box: ".card3",
    color: "#ead9ef",
    direction: -1,
    fps: 3
});
card3.start();

All done with JavaScript