Closed Kszalank closed 2 years ago
Based on sunset and sunrise time in fetched data, show different background gradients for day and night. TIP: currentTime > sunrise && currentTime < sunset ? day : night
currentTime > sunrise && currentTime < sunset ? day : night
Based on sunset and sunrise time in fetched data, show different background gradients for day and night. TIP:
currentTime > sunrise && currentTime < sunset ? day : night