Informers & Weather#399Verified Pro

Sunrise & Sunset Times

Calculates accurate NOAA sunrise and sunset times, day length, civil/nautical/astronomical twilight, photographer golden hour, and sun elevation arc for 170+ global cities with auto timezone detection. Features 7 distinct responsive skins, live countdown to next solar event, city search combobox, and 7-day forecast.

Customize Widget

Live preview active
Layout2 options
Horizontal alignment within parent container.
Style5 options
Comma-separated modules: sun, twilight, golden, length, countdown, week.
Layout and aesthetic style of the widget.
Light, dark, or system matching theme.
Primary highlight color for active sun elements and badges.
Border radius of the container in pixels.
Localization8 options
Target city name or 'auto' to detect by visitor timezone.
Custom geographic latitude (-90 to 90).
Custom geographic longitude (-180 to 180).
IANA timezone name (e.g. 'Europe/Kyiv') or auto.
Calculation date ('today' or 'YYYY-MM-DD').
Display a GPS button to detect user's current coordinates.
auto = page language, else English
Clock format (12-hour AM/PM or 24-hour).
Live Interactive Preview

Copy and paste this snippet anywhere before the closing </body> tag:

<script src="https://100widgets.com/js.php?id=399" async></script>

Place this container where you want the widget to render, plus the script tag:

<div data-widget="sun-times"></div>
<script src="https://100widgets.com/w/399.js" defer></script>

Step-by-Step Installation Guides

Need platform-specific instructions for embedding this widget? Read our quick step-by-step guides:

HTML / Any SiteWordPressShopifyWixSquarespaceWebflowGoogle Tag ManagerView All 18 Guides →

Key Features

Customizable Sunrise & Sunset Times with 15+ configuration options
Self-contained vanilla JavaScript with zero external dependencies
Works in both Mode A (container) and Mode B (script tag) embed modes
Full keyboard navigation and screen-reader accessibility
Light and dark color mode support with auto-detection
Fully responsive on mobile, tablet, and desktop viewports

How to Install in 3 Easy Steps

1

Customize

Adjust the colors, position, and text above to match your website design and branding.

2

Copy Code

Click "Copy" on the generated embed code snippet. No installation or registration needed.

3

Paste & Publish

Paste the snippet into your HTML, WordPress, Shopify, Webflow, or Wix page.

Frequently Asked Questions

How do I add Sunrise & Sunset Times to my website?

Simply copy the generated embed code snippet and paste it into your site HTML where you want the widget to appear.

Does this widget require jQuery or other libraries?

No, all 100Widgets components are completely standalone and have zero external dependencies.

Is this widget free to use?

Yes, it is 100% free for personal and commercial websites.