Vector.js

Vector is an open source javascript library for creating interactive graphics. View the repository, run the tests, or meet the team.

Slider Element Open in Sandbox

Description

This interactive demonstrates the slider element.

Script

/**
* @title Slider Element
* @description This interactive demonstrates the slider element.
* @tags [elements, input]
*/
import { Interactive, getScriptName } from '../../index.js';
// Initialize the interactive
let interactive = new Interactive(getScriptName());
interactive.width = 768;
interactive.height = 150;
interactive.root.style.border = "1px solid grey";
let slider = interactive.slider(100, 75, {
    width: 150,
});
//# sourceMappingURL=slider-element.js.map