mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
27 lines
466 B
TypeScript
27 lines
466 B
TypeScript
Rellax(".js-rellax");
|
|
|
|
const elm = document.getElementById("#id");
|
|
if (elm) {
|
|
new Rellax(elm);
|
|
}
|
|
|
|
const options: Rellax.RellaxOptions = {
|
|
center: true,
|
|
horizontal: false,
|
|
vertical: true,
|
|
round: true,
|
|
speed: 3000,
|
|
wrapper: "#wrap",
|
|
callback: pos => {}
|
|
};
|
|
|
|
Rellax(".rellax", options);
|
|
|
|
const instance = new Rellax(".rellax", options);
|
|
|
|
instance.destroy();
|
|
instance.refresh();
|
|
|
|
console.log(instance.elms);
|
|
console.log(instance.options);
|