corrections header

This commit is contained in:
Valentin
2024-03-18 15:25:21 +01:00
parent 60be60272f
commit 8f48d2330d
6 changed files with 870 additions and 581 deletions

View File

@@ -1,14 +1,14 @@
function setLogoContainerSize() {
let svgContainer = document.querySelector('#logo-animated');
let svgElement = document.querySelector('svg');
let svgElement = document.querySelector('#logo-animated svg');
svgContainer.style.height = `${svgElement.clientHeight}px`;
}
setLogoContainerSize();
window.addEventListener('resize', setLogoContainerSize);
let chemins = document.querySelectorAll('path');
let chemins = document.querySelectorAll('#logo-animated svg path');
for (let chemin of chemins) {
let length = chemin.getTotalLength();
chemin.style.strokeDasharray = length;