icon color when scrolling

Issues related to previewing and publishing your web site.
Post Reply
Ruslan3013
 
 
Posts: 70
Joined: Tue Sep 28, 2021 9:37 am

icon color when scrolling

Post by Ruslan3013 »

guys , there is such a problem . The icon changes after all under the scroll, if I don't want my head to go round "
<style>
#Icon 1
{
fill: current color!important;
}
</style>
but if you set an event to this icon, the above method does not work .
User avatar
Pablo
 
Posts: 23437
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: icon color when scrolling

Post by Pablo »

What exactly did you do?
Can you please be more specific?
Ruslan3013
 
 
Posts: 70
Joined: Tue Sep 28, 2021 9:37 am

Re: icon color when scrolling

Post by Ruslan3013 »

can you follow the link https://saytal.online/test ?
Ruslan3013
 
 
Posts: 70
Joined: Tue Sep 28, 2021 9:37 am

Re: icon color when scrolling

Post by Ruslan3013 »

everything is clearly visible there. If you do not set an event to the icon, it changes color when scrolling, but if you set an event to this icon, it remains at the same color
User avatar
wwonderfull
 
 
Posts: 1586
Joined: Fri Aug 21, 2020 8:27 am
Contact:

Re: icon color when scrolling

Post by wwonderfull »

It seems you have animations on the icon WHITE and RED are you saying that is the problem?
User avatar
Pablo
 
Posts: 23437
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: icon color when scrolling

Post by Pablo »

If you add an event then the icon becomes a link so you will need to update the code.

Code: Select all

<style>
#Icon1 a
{
fill: current color!important;
}
</style>
Note tat we cannot teach you how ti write code/.
If you want to implement advanced functionality like this then it is assumed that you know what you are doing.
Post Reply