Get Started
38 widgets
Nature & Weather

Moon Phase

Real-time moon phase display with illumination percentage, shown as seen from the northern or southern hemisphere. Calculated on the fly, no external service required.

  • No coding
  • Live in minutes
  • Included in every plan
Live demo — try it

Sample content — yours appears as soon as you configure it.

Overview

What Moon Phase does

Moon Phase is an embeddable widget you drop into any website with a single snippet of code. Real-time moon phase display with illumination percentage. It runs in its own isolated frame, so it can never clash with your site's own styles or scripts, and it resizes itself to fit wherever you place it.

Moon Phase keeps itself up to date: once the snippet is on your page, everything it displays is driven from your myNaturevista dashboard. Change a setting there and your live site reflects it straight away, without editing a single line of code again.

You control how it looks and behaves from 2 settings — hemisphere, theme. Pick the options that match your brand, save, and the change is live.

Like every widget in the myNaturevista nature & weather collection, Moon Phase is built to be fast and unobtrusive: it loads asynchronously so it never blocks your page, works on phones and desktops alike, and can be added to as many of your pages as you want.

Features

What you get

  • Fully configurable from your dashboard — no code changes needed.
  • Light or dark theme to match your site's design.
  • Accurate phase dates, shown as seen from your visitors' hemisphere.
Setup

How to add Moon Phase to your site

Three steps, about two minutes, no build tools.

  1. 1

    Add the loader once

    Paste a single <script> tag before your closing </body> tag. One loader powers every myNaturevista widget on the page, so you only ever add it once.

  2. 2

    Place the widget

    Drop a small <div> wherever Moon Phase should appear — inside a column, a section, a sidebar, anywhere. It takes the width it is given and sets its own height.

  3. 3

    Configure it in the dashboard

    Choose the theme and options that suit your site from the dashboard. Moon Phase picks them up on the next page load.

your-page.html
<!-- 1. Load the myNaturevista loader once per page -->
<script src="https://mynaturevista.com/w.js"></script>

<!-- 2. Place the widget wherever it should appear -->
<div data-menv-widget="moon-phase"
     data-menv-key="YOUR_API_KEY"
     data-menv-instance="YOUR_INSTANCE_ID"></div>
Options

What you can configure

Everything below is set from your dashboard — never in your website's code.

Settings available for Moon Phase
OptionTypeValuesDefault
HemisphereThe phase is the same everywhere, but from the southern hemisphere the moon looks mirrored. Pick where your visitors are. choice Northern (Europe, North America, Asia...) · Southern (South America, Australia, southern Africa...) north
Theme choice Light · Dark · Auto (match visitor's OS) auto
Use cases

Who uses Moon Phase

Visitors who can explore a place without leaving your site stay longer, look at more pages and come back — and every extra minute on the page is a minute they are not spending on a competitor.

Hotels & rentals

Give guests the local context they are already searching for, without sending them to another site.

Tour operators

Back up your itineraries with live, place-specific information visitors can check themselves.

Travel blogs

Turn a written post into something readers interact with — and stay on the page for.

Tourism boards

Publish the same trustworthy information across every regional page you run.

FAQ

Moon Phase — frequently asked questions

How do I add the Moon Phase widget to my website?

Add the myNaturevista loader script once before your closing </body> tag, then place a <div> with your widget id, API key and instance id wherever Moon Phase should appear. That is the whole installation — it works on any platform that lets you paste HTML, including WordPress, Shopify, Squarespace, Webflow and hand-written sites.

Do I need to know how to code to use Moon Phase?

No. If you can paste a snippet of HTML into your site once, you are done. Everything after that — settings, content and styling — is handled from your myNaturevista dashboard, with no further code changes.

Can I customise how Moon Phase looks?

Yes. Moon Phase exposes 2 settings: hemisphere, theme. Change them in the dashboard and your live site picks the new values up on the next page load.

Does Moon Phase work on mobile?

Yes. Moon Phase is responsive: it takes the width of the container you place it in and adjusts its layout and height for phones, tablets and desktops.

Will Moon Phase slow down my website?

No. The loader is asynchronous, so it never blocks your page from rendering, and the widget itself runs in an isolated frame that loads separately from your own content.

Can I use Moon Phase on more than one website?

Yes. Each website you own gets its own API key and its own configuration, so the same widget can show different settings and content on each domain.

Which plans include Moon Phase?

Moon Phase is available on the following plans: Free, Starter, Business, Enterprise. You can change plan at any time from your dashboard.

Want Moon Phase on your website?

Add it in minutes — no coding required.

Get This Widget
← Browse all widgets