Skip to content

Commit

Permalink
scroll to expand section
Browse files Browse the repository at this point in the history
  • Loading branch information
TRMSC committed Nov 19, 2023
1 parent 291cc3f commit 1d81229
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1d81229

Please sign in to comment.