how to make it so the typewriter effect only occurs on the index.html page and not other subpages

code: https://codepen.io/gsadopkgj/pen/oNmXegO I want this effect solely on the index.html subpage the effect is coded in the css tho so i need to add something to the css which specifies to only do it on the index.html subpage? reason being i have the same header on all the other html subpages so the effect automatically is done there too (but i find this distracting / annoying) it probably should only be done on the home (index.html) page.
asdlfkj
CodePen
oNmXegO
...
5 Replies
Joao
Joao11mo ago
Easy way is to create a separate CSS file for this effect that is then loaded only in the index.html
ᴋʙ
ᴋʙ11mo ago
on the index page just give it a new class and have the effect be on that new class that is only on the index.html page
Zoë
Zoë11mo ago
There isn’t a CSS selector for page URL (although you can for hash links but that doesn’t help in this situation)
lafayette
lafayette11mo ago
i only want one css file tbh ah this works thanks!
ᴋʙ
ᴋʙ11mo ago
np
Want results from more Discord servers?
Add your server