Bootstrap snippet. Card Clock Bootstrap 4 bootdey

This Bootstrap snippet. Card Clock Bootstrap 4 bootdey, was created to help web designers,
front-end developers and back-end developer save time. Use it in your project and build your app faster,
You can also download the HTML, CSS, and JS code.

HTML code

This is the html code used to create this bootstrap snippet, You can copy, paste, change, customize and run the following HTML code to get a result like the one shown in the preview selection

<div class="container mb-3"><h1 class="text-center mb-4 mt-3">Card Clock Bootstrap 4</h1>
<p class="lead text-center">Original design Card hours from <a href="http://bootstraptema.ru/stuff/snippets_bootstrap/clock/card_clock_bootstrap_4/31-1-0-2478" target="_blank">BootstrapTema</a></p>
<p class="lead text-center">You can use all basic classes of colors, change background color, change text color and border color hours</p>
<h2 class="text-center col-xl-12">Flexbox Clock Bootstrap 4 Card</h2><hr />

<!-- flexbox clock row --><div class="row">

<div class="col-md-3">
<div class="card bg-dark text-white">
<h3 class="card-title text-center">
<div class="d-flex flex-wrap justify-content-center mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</div>
</h3>
</div>
</div>

<div class="col-md-3">
<div class="card bg-primary text-white">
<h3 class="card-title text-center">
<div class="d-flex flex-wrap justify-content-center mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</div>
</h3>
</div>
</div>

<div class="col-md-3">
<div class="card bg-secondary text-white">
<h3 class="card-title text-center">
<div class="d-flex flex-wrap justify-content-center mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</div>
</h3>
</div>
</div>

<div class="col-md-3">
<div class="card bg-success text-white">
<h3 class="card-title text-center">
<div class="d-flex flex-wrap justify-content-center mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</div>
</h3>
</div>
</div>

<div class="col-md-3">
<div class="card bg-danger text-white">
<h3 class="card-title text-center">
<div class="d-flex flex-wrap justify-content-center mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</div>
</h3>
</div>
</div>

<div class="col-md-3">
<div class="card bg-warning text-white">
<h3 class="card-title text-center">
<div class="d-flex flex-wrap justify-content-center mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</div>
</h3>
</div>
</div>

<div class="col-md-3">
<div class="card bg-info text-white">
<h3 class="card-title text-center">
<div class="d-flex flex-wrap justify-content-center mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</div>
</h3>
</div>
</div>

<div class="col-md-3">
<div class="card bg-light">
<h3 class="card-title text-center">
<div class="d-flex flex-wrap justify-content-center mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</div>
</h3>
</div>
</div>

</div><!-- /.flexbox clock row -->

<h2 class="text-center col-xl-12 mt-4">Card Clock Bootstrap 4</h2><hr />

<!-- clock row --><div class="row">

<div class="col-md-3">
<div class="card text-white">
<div class="card-body bg-dark text-center">
<p class="card-title mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</p>
</div>
</div>
</div>

<div class="col-md-3">
<div class="card text-white">
<div class="card-body bg-primary text-center">
<p class="card-title mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</p>
</div>
</div>
</div>

<div class="col-md-3">
<div class="card text-white">
<div class="card-body bg-secondary text-center">
<p class="card-title mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</p>
</div>
</div>
</div>

<div class="col-md-3">
<div class="card text-white">
<div class="card-body bg-success text-center">
<p class="card-title mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</p>
</div>
</div>
</div>

<div class="col-md-3">
<div class="card text-white">
<div class="card-body bg-danger text-center">
<p class="card-title mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</p>
</div>
</div>
</div>

<div class="col-md-3">
<div class="card text-white">
<div class="card-body bg-warning text-center">
<p class="card-title mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</p>
</div>
</div>
</div>

<div class="col-md-3">
<div class="card text-white">
<div class="card-body bg-info text-center">
<p class="card-title mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</p>
</div>
</div>
</div>


<div class="col-md-3">
<div class="card bg-light">
<div class="card-body bg-light text-center">
<p class="card-title mt-2">
<a><span class="badge hours"></span></a> :
<a><span class="badge min"></span></a> :
<a><span class="badge sec"></span></a>
</p>
</div>
</div>
</div>

</div><!-- /.clock row -->

</div><!-- /.container -->

CSS code

This is the css code used to create this bootstrap snippet, You can copy, paste, change, customize and run the following CSS code to get a result Like the one shown in the preview selection

body{
background: #C9D6FF;
background: -webkit-linear-gradient(to right, #E2E2E2, #C9D6FF);
background: linear-gradient(to right, #E2E2E2, #C9D6FF);
}
@font-face { /* download clock font: http://bootstraptema.ru/stuff/0-0-0-2478-20 */
font-family:"alarm clock";
src:url("/fonts/a/alarm_clock.eot?") format("eot"),
url("/fonts/a/alarm_clock.woff") format("woff"),
url("/fonts/a/alarm_clock.ttf") format("truetype"),
url("/fonts/a/alarm_clock.svg#alarmclock") format("svg");
font-weight:normal;
font-style:normal;
}
h3,a{font-family: 'alarm clock';}
                                    

Javascript/Jquery code

This is the css code used to create this bootstrap snippet, You can copy, paste, change, customize and run the following JS code to get a result Like the one shown in the preview selection

$(document).ready(function() {
setInterval( function() {
var hours = new Date().getHours();
$(".hours").html(( hours < 10 ? "0" : "" ) + hours);
}, 1000);
setInterval( function() {
var minutes = new Date().getMinutes();
$(".min").html(( minutes < 10 ? "0" : "" ) + minutes);
},1000);
setInterval( function() {
var seconds = new Date().getSeconds();
$(".sec").html(( seconds < 10 ? "0" : "" ) + seconds);
},1000);
}); 

Similar snippets

Bootstrap snippet bs4 Event Schedule page

bs4 Event Schedule page

View

Bootstrap snippet Responsive UI Card

Responsive UI Card

View

Bootstrap snippet bs4 task detail

bs4 task detail

View

Bootstrap snippet bs4 simple portfolio

bs4 simple portfolio

View

Bootstrap snippets. Card Clock Bootstrap 4 bootdey

About this bootstrap snippet

This bootstrap snippet, Card Clock Bootstrap 4 bootdey, was published on Nov 21st 2017, 04:16 by Mihail Merenkov and it is free.

We hope you will enjoy this awesome snippet and stay tuned for the latest updates, bootdey snippets are already used in thousands of blogs, websites and projects. We believe it will save your precious time and gives trendy look to your next web project.

We always try to offer the best beautiful and responsive source of Bootstrap code examples and components.

This snippet currectly have 285 views, Using this bootstrap snippet you have the following benefits:

Bootstrap 4.0.0-beta

This snippet is based on bootstrap 4.0.0-beta and the grid system of this framework

Responsive

Based on bootstrap framework makes all the layouts perfectly responsive for all devices

Crossbrowser compatibility

Tested on all major browsers, it works smoothly on all of them

Jquery plugins

Great built-in plugins with jquery framework, you can easy to change all declarations

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

This snippet can be simply integrated on existing sites and new ones too, all you need to do is copy the code and start working