Any size of wire has a particular number of electrical resistance. The extended the wire, the greater the resistance. Electrical resistance will cause voltage fall and voltage fall will cause your LEDs to dim.
This https://annieehlo594825.canariblogs.com/not-known-factual-statements-about-moon-night-light-45269004