Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="container">
	<div class="horizontal">
		<div class="vertical">
			<h1>Custom JS slider with animated CSS - Force Framework</h1>
		</div>
	</div>
	
	<div class="horizontal">
		<div class="verticals four offset-by-four">
			<div class="alert alert-block">
				<h3 class="leadh3">General Stats</h3>
				
				<!-- another tab starts here  -->
				<div id="tab1" class="tab-data active">
					<div class="stats-blk">
						<h4>Unique Visitors</h4>
						<small>Last week rise by 62%</small>
						<div class="progress">
							<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="62" aria-valuemin="0" aria-valuemax="100" style="width: 62%;">
								<span class="read-only">62% Complete</span>
							</div>
						</div>
					</div>
					
					<div class="stats-blk">
						<h4>Registrations</h4>
						<small>Up by 57% in last 7 days</small>
						<div class="progress">
							<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="57" aria-valuemin="0" aria-valuemax="100" style="width: 57%;">
								<span class="read-only">57% Complete</span>
							</div>
						</div>
					</div>
					
					<div class="stats-blk">
						<h4>Direct Sales</h4>
						<small>Last month rise by 22%</small>
						<div class="progress">
							<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="22" aria-valuemin="0" aria-valuemax="100" style="width: 22%;">
								<span class="read-only">22% Complete</span>
							</div>
						</div>
					</div>
					
					<div class="stats-blk">
						<h4>Referral Sales</h4>
						<small>Last month rise by 38%</small>
						<div class="progress">
							<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="38" aria-valuemin="0" aria-valuemax="100" style="width: 38%;">
								<span class="read-only">38% Complete</span>
							</div>
						</div>
					</div>
				</div>
				
				<!-- another tab starts here  -->
				<div id="tab2" class="tab-data">
					<div class="stats-blk">
						<h4>Repeated Visitors</h4>
						<small>Last week rise by 24%</small>
						<div class="progress">
							<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="24" aria-valuemin="0" aria-valuemax="100" style="width: 24%;">
								<span class="read-only">24% Complete</span>
							</div>
						</div>
					</div>
					
					<div class="stats-blk">
						<h4>FollowUp Appointments</h4>
						<small>Up by 19% in last 7 days</small>
						<div class="progress">
							<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="19" aria-valuemin="0" aria-valuemax="100" style="width: 19%;">
								<span class="read-only">19% Complete</span>
							</div>
						</div>
					</div>
					
					<div class="stats-blk">
						<h4>Missed Appointments</h4>
						<small>Last month rise by 9%</small>
						<div class="progress">
							<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="9" aria-valuemin="0" aria-valuemax="9" style="width: 9%;">
								<span class="read-only">9% Complete</span>
							</div>
						</div>
					</div>
					
					<div class="stats-blk">
						<h4>Client Feedback</h4>
						<small>Last month rise by 38%</small>
						<div class="progress">
							<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="38" aria-valuemin="0" aria-valuemax="100" style="width: 38%;">
								<span class="read-only">38% Complete</span>
							</div>
						</div>
					</div>
				</div>
				
				<!-- another tab starts here  -->
				<div id="tab3" class="tab-data">
					<div class="stats-blk">
						<h4>Client Progress</h4>
						<small>Last week rise by 78%</small>
						<div class="progress">
							<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="78" aria-valuemin="0" aria-valuemax="100" style="width: 78%;">
								<span class="read-only">78% Complete</span>
							</div>
						</div>
					</div>
					
					<div class="stats-blk">
						<h4>Enquiries</h4>
						<small>Up by 87% in last 7 days</small>
						<div class="progress">
							<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="87" aria-valuemin="0" aria-valuemax="100" style="width: 87%;">
								<span class="read-only">87% Complete</span>
							</div>
						</div>
					</div>
					
					<div class="stats-blk">
						<h4>Direct Sales</h4>
						<small>Last month rise by 22%</small>
						<div class="progress">
							<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="22" aria-valuemin="0" aria-valuemax="100" style="width: 22%;">
								<span class="read-only">22% Complete</span>
							</div>
						</div>
					</div>
					
					<div class="stats-blk">
						<h4>Total Sales</h4>
						<small>Last month rise by 38%</small>
						<div class="progress">
							<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="38" aria-valuemin="0" aria-valuemax="100" style="width: 38%;">
								<span class="read-only">38% Complete</span>
							</div>
						</div>
					</div>
				</div>
				
				
				<ul class="tab-listing">
					<li><a href="#tab1" class="active"></a></li>
					<li><a href="#tab2"></a></li>
					<li><a href="#tab3"></a></li>
				</ul>
				
			</div>
		</div>
	</div>
	
	<div class="horizontal">
		<div class="vertical">
			<p style="font-style: italic; color: #2196f3; font-size: 18px; text-align: center; margin-top: 50px; margin-bottom: 20px;">Follow me on Twitter: <a href="https://twitter.com/mrdogra007/" target="_blank">@mrdogra007</a></p>
		</div>
	</div>
</div>
              
            
!

CSS

              
                body { background: #141f31;}
.tab-data { display: none;}
.tab-data.active { display: block;}
.alert { background: #ffffff; width: 100%; box-shadow: 0px 10px 40px 0px rgba( 0, 0, 0, .10 ); border: none; border-radius: 10px; margin-bottom: 20px; padding: 15px;}
h1 { font-size: 32px; margin-top: 60px; margin-bottom: 40px; text-align: center; font-weight: bold; color: #ffffff;}
h3.leadh3 { display: inline-block; padding: 0 15px; margin-top: 25px; margin-bottom: 18px; font-size: 20px;}
.stats-blk { padding: 0 15px; margin-bottom: 20px;}
.stats-blk h4 { font-size: 16px; margin-bottom: 5px;}
.stats-blk small { color: #979797; font-style: italic;}
.stats-blk .progress { height: 8px; margin-top: 2px;}
.tab-listing { width: 100%; margin: 15px 0 0; padding: 0; list-style: none; text-align: center;}
.tab-listing li { display: inline-block; padding: 5px;}
.tab-listing li a { width: 12px; height: 12px; border-radius: 12px; background: #c7c7c7; display: block; opacity: .2; }
.tab-listing li a.active, 
.tab-listing li a:active, 
.tab-listing li a:focus { width: 24px; opacity: 1;}
.tab-data { -webkit-animation: fadeout 2s; -moz-animation: fadeout 2s; -ms-animation: fadeout 2s; -o-animation: fadeout 2s; animation: fadeout 2s;} 
.tab-data.active { -webkit-animation: fadein 2s; -moz-animation: fadein 2s; -ms-animation: fadein 2s; -o-animation: fadein 2s; animation: fadein 2s;} 
.read-only { display: none; visibility: hidden;}
.progress { vertical-align: baseline;}
.progress { display: -webkit-box; display: -ms-flexbox; display: flex; height: 14px; overflow: hidden; font-size: 0.75rem; background-color: #e9ecef; border-radius: 0.25rem;}
.progress-bar { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; color: #fff; text-align: center; background-color: #007bff; transition: width 0.6s ease;}
.progress-bar-info { background-color: #17caff;}
.progress-bar-success { background-color: #4ee24e;}
.progress-bar-warning { background-color: #ffad0e;}
.progress-bar-danger { background-color: #f46426;}

/* key frames for fadein */
@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
/* key frames for fadeout */
@keyframes fadeout {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@-moz-keyframes fadeout {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@-webkit-keyframes fadeout {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@-ms-keyframes fadeout {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@-o-keyframes fadeout {
    from { opacity: 0; }
    to   { opacity: 1; }
}
              
            
!

JS

              
                // Custom JS slider with animated CSS plugin - Force Framework 
// Author: Force Framework
// Created Date: 09/02/2019
// Modified Date: 15/12/2023
// Website: https://letsforce.com/
// #ForceFramework

$('.tab-listing a').click(function(){
	// remove the pre active class
	$('.tab-data').removeClass('active');
	$('.tab-listing a').removeClass('active');
	// activate the tab by the href="tab ID"
	var active = $(this).attr('href');
	// display the active tab data div
	$('div' + active).addClass('active');
	// Set current tab link to active
	$(this).addClass('active');
	return false;
});
              
            
!
999px

Console