From 1d81229dac0fc70d4c169946258281c7eb563eef Mon Sep 17 00:00:00 2001 From: TRMSC Date: Sun, 19 Nov 2023 14:48:15 +0100 Subject: [PATCH] scroll to expand section --- docs/src/script.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/src/script.js b/docs/src/script.js index 43e62b7..719a372 100644 --- a/docs/src/script.js +++ b/docs/src/script.js @@ -152,6 +152,12 @@ listenEvents = () => { cleanGenerator('clean'); }); + // Scroll to expand section + let expand = document.getElementById('ic-expand'); + expand.addEventListener('click', function() { + scrollTarget('ic-expand', 150); + }); + // Use text cubes document.querySelectorAll('.ic-css-cube').forEach(cube => { cube.addEventListener('click', function(event) {