summaryrefslogtreecommitdiff
path: root/src/shadow.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/shadow.js')
-rw-r--r--src/shadow.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/shadow.js b/src/shadow.js
index 57a5cd6..973125c 100644
--- a/src/shadow.js
+++ b/src/shadow.js
@@ -123,4 +123,13 @@ export default class Shadow {
// Start the animation
requestAnimationFrame(frame);
}
+
+ placeItself() {
+ document.body.appendChild(this.element);
+ }
+
+ destroyItself() {
+ if (!document.body.contains(this.element)) return;
+ document.body.removeChild(this.element);
+ }
}