React js UI example. counter feature

React js UI example and template, counter feature! . Take a look at this UI example and see how it can enhance your project. Your can copy or download the code and use it in your project. Don't forget to browse our library of other free React Native templates for even more design and functionality inspiration. Happy coding!
Tags: counter

1. First, we need fresh reactjs setup, and for that, we need to run below commands into out terminal, and also we should have latest node version installed on our system:

npx create-react-app my-awesome-project

cd my-awesome-project

npm start

2. Now we need to run below commands into our project terminal to get bootstrap and related modules into our reactjs application:

npm install [email protected] --save

npm start //For start project again

3. Finally for the main output, we need to add below code into our my-awesome-project/src/App.js file or if you have fresh setup then you can replace my-awesome-project/src/App.js file code with below code:

import React from 'react';
import './App.css';
import 'bootstrap/dist/css/bootstrap.min.css';


function App() {
  
	return (
		<div>
			<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/lykmapipo/[email protected]/css/themify-icons.css"/>
<section data-stellar-background-ratio="0.3" class="counter_feature">
	<div class="container">
		<div class="row text-center">
			<div class="col-lg-3 col-sm-6 col-xs-12 no-padding wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.1s" data-wow-offset="0">
				<div class="single-project">
					<span class="ti-user"></span>
					<h2 class="counter-num">32652</h2>
					<h4>Happy Customers</h4>
				</div>							
			</div>
			<div class="col-lg-3 col-sm-6 col-xs-12 no-padding wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.2s" data-wow-offset="0">
				<div class="single-project">
					<span class="ti-star"></span>
					<h2 class="counter-num">21821</h2>
					<h4>Project Done</h4>
				</div>
			</div>
			<div class="col-lg-3 col-sm-6 col-xs-12 no-padding wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s" data-wow-offset="0">
				<div class="single-project">
					<span class="ti-pencil-alt"></span>
					<h2 class="counter-num">5660</h2>
					<h4>In Business</h4>
				</div>
			</div>
			<div class="col-lg-3 col-sm-6 col-xs-12 no-padding wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.4s" data-wow-offset="0">
				<div class="single-project">
					<span class="ti-support"></span>
					<h2 class="counter-num">11859</h2>
					<h4>Support Cases</h4>
				</div>					
			</div>
		</div>
		<div class="row text-center">						
			<div class="col-lg-8 offset-lg-2 col-sm-12 col-xs-12 wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s" data-wow-offset="0">
				<div class="video_btn" style={{/*background-image: url(https://www.bootdey.com/image/500x500/FF69B4/000000);  background-size:cover; background-position: center center;*/}}>
					<h3>Watch video for know more.</h3>
					<a class="video-play" href="#/"><i class="ti-video-clapper"></i></a>
				</div>	
			</div>						
		</div>				
	</div>		
</section>
		</div>
	);
}
export default App;

4. Now we need to add below code into our my-awesome-project/src/App.css file :

body{margin-top:20px;}
.counter_feature {
    background-image: url("https://www.bootdey.com/image/280x280/48D1CC/000000");
	background-size: 100%;
	background-repeat: no-repeat;
	background-position: top center;
	position: relative;
    margin-top:120px;
}
.counter_feature:before {
    background:#020928;
	opacity:0.8;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=85)";
    bottom: 0;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}
.single-project {
	padding: 60px 40px;
	background: #ffaa17;
	margin-top: -100px;
	border-right: 1px solid #e89505;
}
@media only screen and (max-width:768px){
.single-project {margin-top: -60px;}
}
.single-project span {
	font-size: 40px;
	margin-bottom: 20px;
	display: inline-block;
}
.single-project h2 {
	font-weight: 700;
	font-size: 50px;
}
.single-project h4 {
	margin-bottom: 0;
	font-size:16px;
}
.mfp-iframe-holder .mfp-content {
  line-height: 0;
  margin-top: 55px;
  max-width: 900px;
  width: 100%;
}
.video_btn {
	padding:150px 0;
	position: relative;
	border:15px solid #fff;
	margin-top: 100px;
	margin-bottom:-100px;
	box-shadow:0 10px 40px -10px rgba(0,64,128,.09);
}
.video_btn h3 {
	background: #ffaa17;
	padding: 30px;
	margin: 0 40px;
	line-height: 40px;
	margin-bottom: 30px;
	text-transform: capitalize;
	font-weight: 600;
}
.video_btn a  {
background: rgba(255, 255, 255, 0.9) none repeat scroll 0 0;
border: 10px solid rgba(0, 0, 0, 0.05);
border-radius: 100px;
color: #ffaa17;
display: block;
font-size: 24px;
height: 100px;
line-height: 90px;
margin-bottom: auto;
margin-left: auto;
margin-right: auto;
text-align: center;
width: 100px;
}

Similar snippets

React js template and ui example counter content

counter content

React js template and ui example bs5 dark footer

bs5 dark footer

React js template and ui example profile edit data and skills

profile edit data and skills

React js template and ui example timeline with year and date

timeline with year and date

React js template and ui example infinite page loader

infinite page loader