Shane D
Shane D
KPCKevin Powell - Community
Created by Pat66 on 4/23/2024 in #front-end
Show picture on mouseenter
Oh even better on my phone it was only the picture of a boy and girl on the stairs that was toggling so thought the query selector was the reason for that.
6 replies
KPCKevin Powell - Community
Created by Pat66 on 4/23/2024 in #front-end
Show picture on mouseenter
So when you're toggling classes in JS you can omit the "." So should be classlist.toggle("appear") Not class list.toggle(".appear") Writing on phone so excuse the syntax issues with my code. Just as a note query selector .pic will only toggle the 1st picture. So something to think about too.
6 replies