top of page
Menu
Close
Home
SUBSCRIBE
Wix Studio
tips and tricks
Home
bottom of page
const h1Elements = document.querySelectorAll('div.splitting'); // Loop through each h1 element and add the "data-splitting" attribute h1Elements.forEach(div => { div.setAttribute('data-splitting', ''); });