Weebly Tricks #84 — ClassyCountdown Timer
Add a clean countdown timer to your Weebly site, created by Marius Stanciu.
Learn how to customize and modify your Weebly site with new effects, plugins, and widgets.
Welcome to My Weebly Tricks, a resource for Weebly site owners who want to go beyond the basics. Here you'll find step-by-step guides on adding image effects, slideshows, navigation scripts, text animations, countdown timers, and more — all tailored for the Weebly platform.
A fullscreen video hero section can give a Weebly site the immediate visual impact of a campaign landing page. Instead of asking visitors to scroll past a static banner, a looping clip can demonstrate a product, reveal a venue or explain a service while the main headline and button remain in view. It works particularly well for portfolios, hospitality businesses, events and creative studios.
This guide builds the effect with an Embed Code element, lightweight CSS and a short optional control script, so it does not depend on Weebly's paid background-video feature. You will also get a mobile-friendly fallback, an accessible pause control and a workflow for checking the finished page on Australian connections. The aim is a hero that feels cinematic without making the rest of the site slow or difficult to use.
Start with one clear purpose for the opening screen. A product demonstration should show the product in use, while a hospitality site can move through the dining room, studio or event space. Keep the clip to roughly six to twelve seconds so the loop feels intentional. Plan the headline and call to action separately in HTML, allowing visitors to read and act without waiting for a soundtrack or lengthy scene.
Prepare the file as an H.264 MP4 at 1920 by 1080, with a muted audio track or no audio at all. Most current browsers can play this format, and muted playback satisfies the common autoplay requirement in Chrome, Safari and Edge. A matching poster image gives the hero an instant visual while the video loads. Compress the result carefully: a polished file around 6 MB is often more practical than a pristine 40 MB upload on a shared mobile connection.
The viewing context matters in Australia. Many visitors opening a site in Sydney or Melbourne will arrive on a phone, often while moving between appointments or public transport. Tourism, hospitality and function businesses around Brisbane or the Gold Coast can use venue footage to sell atmosphere, but they should not rely on a large file downloading before the message appears. Test on a throttled connection, and let the poster frame carry the first impression wherever the video cannot play promptly.
Create the page, add a full-width section and remove most of the default space above and below its content. In that section, place an Embed Code element and paste the following structure. Replace the example file paths, poster, headline, destination and button wording with your own; the element keeps the presentation together and avoids fragile positioning across unrelated Weebly rows.
<div class="wv-hero">
<video class="wv-hero__media" autoplay muted loop playsinline preload="metadata" poster="/assets/hero-poster.jpg">
<source src="/assets/hero-loop.mp4" type="video/mp4">
</video>
<div class="wv-hero__shade"></div>
<div class="wv-hero__content">
<p>Your headline goes here</p>
<a href="/contact">Book a consultation</a>
</div>
<button class="wv-hero__toggle" type="button" aria-label="Pause background video">Pause video</button>
</div>
Upload the compressed video through Weebly's file manager, copy its final file address and place it in the source tag. The poster path should point to the corresponding uploaded image. Keep the text and link as real elements rather than text baked into the footage; this keeps the message selectable, translatable and editable after publication. It also lets screen readers reach the main action even when the video is unavailable.
A viewport-filling hero is different from putting the browser itself into native fullscreen. Native fullscreen hides navigation and should remain optional rather than automatic. If a visitor-controlled expand button is important, review the browser fullscreen action script as a separate enhancement and trigger it only from a deliberate click. Always provide the normal Weebly page navigation behind the hero.
Place the following CSS in your site's Custom CSS area where available, or inside a style block in the Embed Code element. The first 100vh line supplies broad browser support, while 100svh uses the smaller viewport that accounts for mobile browser controls. The video, shade and content occupy separate layers so the text stays readable.
.wv-hero {
position: relative;
isolation: isolate;
display: grid;
place-items: end start;
min-height: 100vh;
min-height: 100svh;
overflow: hidden;
background: #181818;
}
.wv-hero__media {
position: absolute;
inset: 0;
z-index: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.wv-hero__shade {
position: absolute;
inset: 0;
z-index: 1;
background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.78));
}
.wv-hero__content {
position: relative;
z-index: 2;
width: min(90%, 760px);
padding: clamp(2rem, 7vw, 5rem);
color: #fff;
}
.wv-hero__content p {
max-width: 44rem;
font-size: clamp(2rem, 6vw, 4.5rem);
line-height: 1.05;
}
.wv-hero__content a {
display: inline-block;
margin-top: 1rem;
padding: .85rem 1.2rem;
color: #111;
background: #fff;
text-decoration: none;
}
.wv-hero__toggle {
position: absolute;
right: 1rem;
bottom: 1rem;
z-index: 3;
}
@media (max-width: 640px) {
.wv-hero__content { padding: 5.5rem 1.25rem 2rem; }
}
Choose an overlay strong enough for the particular footage. Pale text over bright water or a white studio wall can disappear, so test the hero at several points in the loop. Use a branded button colour and generous spacing rather than shrinking everything to fit. The object-fit: cover rule fills the section on phones and desktops, but choose safe framing in the original clip because cropping will remove the sides on a narrow screen.
The visible pause button needs a small script to control the video and honour a visitor's reduced-motion preference. This code can sit below the HTML or in an Embed Code element on the same page. It starts paused for people who request reduced motion, then updates the button label after every choice.
document.addEventListener("DOMContentLoaded", () => {
document.querySelectorAll(".wv-hero").forEach((hero) => {
const video = hero.querySelector("video");
const button = hero.querySelector(".wv-hero__toggle");
if (!video || !button) return;
if (matchMedia("(prefers-reduced-motion: reduce)").matches) video.pause();
button.addEventListener("click", () => {
if (video.paused) video.play(); else video.pause();
const playing = !video.paused;
button.textContent = playing ? "Pause video" : "Play video";
button.setAttribute("aria-label", `${playing ? "Pause" : "Play"} background video`);
});
});
});
Run this media pass before styling the final button or publishing:
preload="metadata" and test the first view under a slow or metered connection.Then check the complete experience on an iPhone, an Android phone and a desktop keyboard. Confirm that the pause control works, the button can be reached in logical order and the text remains visible over every part of the loop. A visitor using reduced motion should receive the poster or a still first frame rather than continuous playback. Verify that the page remains usable if JavaScript is blocked.
Small teams should also price the complete stack in Australian dollars, including the domain, business mailbox and any video hosting. The NameCheap email promotion can be checked against current terms, but an older promotion should not be treated as a permanent saving. Keep this operational work separate from the visual design so a discount does not dictate the finished customer experience.
Track the hero's main action as a distinct event in Weebly Analytics, such as hero_cta_click, and compare it with the same button on later pages. Give the video a sensible maximum width in pixels to prevent visitors from downloading a needlessly large file. Check the published domain rather than only the editor preview, since caching, file addresses and relative paths can behave differently after publication. A short clip with clear conversion is more useful than a heavy file that delays the message.
Publish the page to a draft URL and inspect it in a private browser window. Clear the cache, load the page once and watch how quickly the poster and text appear. Check the browser console for missing media errors, then open the same URL on a second device. If the video does not begin, the file path, poster address or autoplay attributes are the first items to inspect; the layout and copy can remain intact while the issue is corrected.
Australian privacy and email rules apply when the hero leads to an enquiry or newsletter. Keep the privacy notice easy to find, collect only the details needed to respond and explain newsletter consent clearly under the Privacy Act 1988 and Spam Act 2003. For contact details, consider local operating hours: Queensland uses AEST throughout the year, while New South Wales, Victoria, Tasmania and South Australia move between AEST and AEDT. Displaying the relevant zone prevents confusion when a visitor books across state borders.
Build the section today with your shortest polished clip, one strong headline and one clear action. Preview it on the phone you use most, publish the tested page and share the final URL with a customer or colleague. The result is a focused Weebly hero that communicates quickly, remains accessible and gives every campaign link a stronger starting point.
Add a clean countdown timer to your Weebly site, created by Marius Stanciu.
A comparison of free and paid email accounts and the advantages of using a domain-based custom email.
Instructions on setting a free custom email address for your website within Weebly.
Configure your Weebly RSS feed so visitors can subscribe and receive email updates.
Details on a promotional offer for two months of free email hosting from Namecheap.
Subscribe for regular email updates and get access to new Weebly tips and tutorials.