Countdown Timer with Video
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 - 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&byline=0&portrait=0&badge=0&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();
});
Developer | Satnam Singh |
Username | rssatnam |
Uploaded | October 07, 2022 |
Rating | 3 |
Size | 2,428 Kb |
Views | 42,504 |
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!
Name | Size |
CSS Ribbon | 1,903 Kb |
A Pen by Satnam Singh | 11,360 Kb |
JavaScript Reference Type | 1,984 Kb |
Giving Strike, Del or S elements a Color | 1,505 Kb |
SVG Cone Scribble | 1,724 Kb |
Navigation Slider | 2,107 Kb |
CSS3 Form Page Design | 3,613 Kb |
Image Viewer | 2,115 Kb |
CSS Image Parallax Effect | 2,232 Kb |
Pure CSS3 Drop-down Navigation with Effects | 2,262 Kb |
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!
Name | Username | Size |
A Pen by utcwebdev | Utcwebdev | 2,856 Kb |
Simple search using AngularJS | Haykou | 1,802 Kb |
STIKHOI | Denmch | 7,122 Kb |
IE flex collapse bug fix | Rowno | 2,678 Kb |
Awesome | Samarthpd | 2,901 Kb |
Apex Calculator | Michaelwnelson | 2,370 Kb |
JavaScript Animation | Rcmeisty | 4,581 Kb |
Rainbow Drops | Csbarnes | 2,365 Kb |
Yuliya v krylova | Rafszul | 37,351 Kb |
CSS3 Media Queries demo | Machal | 1,824 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!