Bootstrap snippet and html example. Tablet style rollover portfolio

Bootstrap 4.3.1 snippet "Tablet style rollover portfolio" with HTML, CSS, and JS. Copy, paste, and customize this responsive UI component for your project.
Tags: Table style,portfolio,roolover,responsive,bootstrap grid,bootstrap 4.3

HTML code

Clean, semantic HTML that powers this Bootstrap 4.3.1 snippet. Copy and paste it into your page (with Bootstrap loaded) to reproduce the exact layout shown in the preview.

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->

<h1 class="text-center py-5"><span>P</span>ortfolio<span>.</span></h1> 
<div class="container-fluid">
    <div class="container d-flex align-items-center justify-content-center">
        <article class="portfolio-item device tablet left flex-order-tablet_0 responsive-design video-design device-list">
            <div class="device-hardware">
    			<a class="hover-trigger" href="https://www.fiverr.com/sunlimetech" target="_blank">
					<span class="device-screen" style="background-image: url(https://sunlimetech.com/portfolio/tabletstyleportfolio/imgs/sunlimetechwebdevelopmentfiverr.png);">
						<span class="hover-name">Hire Sunlimetech on Fiverr</span>
					</span>
					<i class="hover-icon fa fa-external-link"></i>
				</a>
            </div>
        </article>
		
		<article class="portfolio-item device tablet left flex-order-tablet_0 responsive-design video-design device-list">
            <div class="device-hardware">
				<a class="hover-trigger" href="https://www.fiverr.com/sunlimetech/design-and-fix-your-bootstrap-4-issues" target="_blank">
					<span class="device-screen" style="background-image: url(https://sunlimetech.com/portfolio/tabletstyleportfolio/imgs/sunlimetechbootstrapexpert.png);">
						<span class="hover-name">Contact Sunlimetech</span>
					</span>
					<i class="hover-icon fa fa-external-link"></i>
				</a>
            </div>
        </article>
    </div>
</div>

CSS code

Scoped CSS that styles the component. Paste it after Bootstrap 4.3.1 to keep the design, spacing, and responsiveness consistent.

@import url('https://fonts.googleapis.com/css?family=Tajawal');
@import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css');
h1 span{
    color: #7f01c7;
}
.device {
    margin: 0;
	position: relative;
	display: inline-block;
	width: 45%;
}
.device.tablet .device-hardware {
	background-image: url(https://cdn.pbhs-sites.com/wp-content/plugins/pbhs-portfolio/_media/images/tablet-lg.webp);
	background-size: 100% auto;
	background-repeat: no-repeat;
	display: block;
	position: relative;
	padding-bottom: 91.3%;
}
.device.tablet .device-screen {
	top: 9.5%;
	bottom: 35.5%;
	left: 12.5%;
	right: 11.5%;
	border-radius: 1px;
	background-size: 122% auto;
	background-position-x: 50%;
	background-position-y: 0%;
	position: absolute;
	background-size: 100% auto;
	background-repeat: no-repeat;
	display: block;
	-webkit-transition: background-position .4s;
	-moz-transition: background-position .4s;
	-o-transition: background-position .4s;
	transition: background-position .4s;
	background-color: #565656;
	overflow: hidden;
}
.device.tablet .hover-trigger:hover .device-screen{
	background-position-y: 50%;
}
.device .hover-name {
	background-color: #7f01c7;
	color: #efefef;
	position: absolute;
	font-size: 13px;
	font-weight: 600;
	line-height: 100%;
	padding: 12px 6px;
	top: -50px;
	text-transform: uppercase;
	text-align: center;
	display: block;
	left: 0;
	right: 0;
	width: 100%;
	-webkit-transition: top .4s;
	-moz-transition: top .4s;
	-o-transition: top .4s;
	transition: top .4s;
	font-family: montserrat,Helvetica,Arial,sans-serif;
}
.device.tablet .hover-trigger:hover .hover-name{
	top:-1px;
}
.device .hover-icon {
	position: absolute;
	left: 50%;
	margin-left: -35px;
	top: 30%;
	color: rgba(255,255,255,.8);
	background-color: rgba(255,255,255,.3);
	width: 70px;
	text-align: center;
	line-height: 70px;
	font-size: 30px;
	height: 70px;
	border-radius: 100%;
	-webkit-transition: all .5s;
	-moz-transition: all .5s;
	-o-transition: all .5s;
	transition: all .5s;
	opacity: 0;
	-webkit-transform: scale(1.5);
	-moz-transform: scale(1.5);
	-o-transform: scale(1.5);
	-ms-transform: scale(1.5);
	transform: scale(1.5);
}
.device.tablet.device-list .hover-trigger:hover .hover-icon{
	opacity: 1;
	-webkit-transform: scale(1);
	-moz-transform:scale(1);
	-ms-transform: scale(1);
	-o-transform: scale(1);
	transform: scale(1);
}
@media (max-width: 991px){
	.device {
		width: 45%;
	}
	.flex-order-tablet_0 {
		order: 0;
		-ms-flex-order: 0;
		-webkit-order:0;
		-moz-box-ordinal-group: 0;
		-ms-box-ordinal-group: 0;
		-webkit-box-ordinal-group: 0;
	}
}
@media (max-width: 767px){
	 .device {
		width: 95%;
	}
}

Similar snippets

Bootstrap example and template. Portfolio filter

Portfolio filter

Bootstrap example and template. bs4 simple portfolio

bs4 simple portfolio

Bootstrap example and template. portfolio with filter menu

portfolio with filter menu

Bootstrap example and template. portfolio with category filter using isotope js

portfolio with category filter using isotope js

Bootstrap example and template. bs5 dark footer

bs5 dark footer

Bootstrap example and template. gallery item

gallery item

Bootstrap example and template. direct chat box

direct chat box

Bootstrap example and template. bs4 clear timeline

bs4 clear timeline

FAQ

How do I use this snippet?

Include Bootstrap 4.3.1, paste the HTML, add the CSS block, and include the JS (if any) to mirror the live preview.

Can I use it in commercial projects?

Yes. It’s free for personal and commercial work; check the snippets license for details.

Is it responsive?

Yes. It inherits the responsive grid and components from Bootstrap 4.3.1.

Bootstrap example and template. Tablet style rollover portfolio

About this bootstrap example/template

Optimized for copy‑paste: clean HTML, scoped CSS, and minimal JS so you can ship production‑ready UI faster and keep designs consistent.

Mobile‑first and responsive by default. Tested across modern browsers to reduce polish time on your project.

Already trusted in 1.9K+ views. Reuse this snippet to speed up landing pages, dashboards, or onboarding flows.

Bootstrap 4.3.1

<link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css'>

<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js'></script>

This code example is based on bootstrap 4.3.1 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

semantic html 5

Built on html / css3 the code quality is really amazing

Simple Integration

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