Countdown Timer with Video

Developer
Size
2,428 Kb
Views
42,504

How do I make an countdown timer with video?

Used jQuery and JS for timer and some little CSS and also embedded video on center of the Page.. What is a countdown timer with video? How do you make a countdown timer with video? This script and codes were developed by Satnam Singh on 07 October 2022, Friday.

Countdown Timer with Video Previews

Countdown Timer with Video - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Countdown Timer with Video</title> <link rel="stylesheet" href="css/style.css">
</head>
<body>
<html>
<head>
<meta charset="utf-8">
<title>Stay Up to Date!</title> <link href='https://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'>
</head>
<body>	<div class="container">	<div class="video">	<iframe src="//player.vimeo.com/video/78058789?title=0&amp;byline=0&amp;portrait=0&amp;badge=0&amp;color=ff4e00" width="700" height="413" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> </div> <div class="timer">	<span class="timerCount">40:00</span> <div class="timerMessage"> Wait for it.. </div> </div> <div class="timerComplete">	<a href="#"><img src="https://www.i.imgur.com/OvnJWzR.jpg" alt="Make me a Beast" /></a> </div> </div>
</body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Countdown Timer with Video - Script Codes CSS Codes

body {	background-color:#CCC;	font-family: 'Varela Round', sans-serif;	font-size:26px;
}
.container {	background:white;	width:940px;	margin:0 auto;	text-align:center;	padding:20px;	box-shadow:0px 5px 20px black;
}
.video {	margin:15px;
}
.timer {	margin:15px;
}
.timerCount {	font-size:72px;
}
.timerComplete { display: none;
}
.timerComplete img {	width:350px;
}

Countdown Timer with Video - Script Codes JS Codes

$(document).ready(function(e) {	var start;	var minutes = 40;	var seconds = 0;	var zeroString = "0";	function timer() {	if(! (minutes == 0 && seconds == 0)){	if(seconds >= 1){	seconds--;	}	else if(seconds == 0){	minutes--;	seconds = 59;	}	$('span.timerCount').text((minutes < 10 ? zeroString : "") + minutes + ":" + (seconds < 10 ? zeroString : "") + seconds);	}	else {	$('.timerComplete').css("display", "block");	$('.timer').hide();	clearInterval(start);	}	}	function startCountdown() {	start = setInterval(timer, 1000);	}	startCountdown();
});
Countdown Timer with Video - Script Codes
Countdown Timer with Video - Script Codes
Home Page Home
Developer Satnam Singh
Username rssatnam
Uploaded October 07, 2022
Rating 3
Size 2,428 Kb
Views 42,504
Do you need developer help for Countdown Timer with Video?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Satnam Singh (rssatnam) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!