Page 1 of 1
icon color when scrolling
Posted: Mon May 15, 2023 8:50 pm
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 .
Re: icon color when scrolling
Posted: Tue May 16, 2023 6:12 am
by Pablo
What exactly did you do?
Can you please be more specific?
Re: icon color when scrolling
Posted: Wed May 17, 2023 10:20 pm
by Ruslan3013
can you follow the link
https://saytal.online/test ?
Re: icon color when scrolling
Posted: Wed May 17, 2023 10:22 pm
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
Re: icon color when scrolling
Posted: Thu May 18, 2023 4:13 am
by wwonderfull
It seems you have animations on the icon WHITE and RED are you saying that is the problem?
Re: icon color when scrolling
Posted: Thu May 18, 2023 10:56 am
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.