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.
5 Replies
Easy way is to create a separate CSS file for this effect that is then loaded only in the index.html
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
There isn’t a CSS selector for page URL (although you can for hash links but that doesn’t help in this situation)
i only want one css file tbh
ah this works
thanks!
np