Tech
Halloween effects on Shopify, WordPress, Wix and Webflow without touching a theme
Most Halloween decoration scripts assume you can edit your <body> tag. On site builders you usually can't, and a script that does document.body.classList.add(...) in the <head> throws, because the body doesn't exist yet.
I ran into this while writing the install guides for halloween.js , a small library that draws spider webs in the corners of the page, blinking eyes, a flying witch, a dropping spider and a tombstone. It is MIT licensed, has no dependencies and weighs about...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to