Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
TristanJo
Experienced
Topic Author
Posts: 116
Joined: 10 Apr 2018, 02:57

Change logo color

31 Aug 2022, 02:21

When the page scrolls, the menu bar changes to a dark color, and if the logo is a dark color, the readability is not good.

How can I change to the white logo(png & svg) when the menu bar scrolls?
Snipaste_2022-08-31_15-19-14.png
Snipaste_2022-08-31_15-19-14.png (5.35 KiB) Viewed 1397 times
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Change logo color

31 Aug 2022, 02:44

This is complicated. It can only be achieved by assigning logo as a "background-image", and then re-assigning background-image based on CSS from scroll. What's the link so I can take a look?
 
User avatar
TristanJo
Experienced
Topic Author
Posts: 116
Joined: 10 Apr 2018, 02:57

Re: Change logo color

31 Aug 2022, 05:09

mjau-mjau wrote: 이것은 복잡합니다. 로고를 "배경 이미지"로 할당한 다음 스크롤에서 CSS를 기반으로 배경 이미지를 다시 할당해야만 달성할 수 있습니다. 내가 볼 수 있는 링크는 무엇입니까?
Okay, I'll give you a message.

I'm currently creating it.

I can't change the logo of my client arbitrarily, so I need a method.