<section class="my-5 py-5">
	<div class="container">
		
		
		<div class="row">
			
			
			<div class="col-md-4">
					<h1 class="text-center">normal</h1>
				<div class="hoverBox2">
  				<img src="https://signal-interactive.com/wp-content/uploads/2016/07/shutterstock_396931693-600x400.jpg" alt="Notebook" style="width:100%;">
						<div class="content centered">
								<h1 class="text-center">Heading</h1>
							<div class="hoverContent">
							 	<p>Lorem ipsum dolor sit amet consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
							 </div>
							
						</div>
				</div> <!-- close hoverBox2 -->
			</div><!-- close col -->
			
			
				
				
			</div>
		</div>
		
		
		
		
.hoverBox2 {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	height: 350px;
	margin: 0 auto; 
	background: #000;
	overflow: hidden;
}

.hoverBox2 .content.centered {
	margin: 0
	max-height: 350px;
	/*overflow:auto; if you want to see overflowing text use this */
	overflow:hidden;
}

.hoverBox2 img {
	opacity: 0.6;
	object-fit: cover;
	height: 100%;
	width: 100%;
	transition: all 2s ease;
	position: absolute;
	left: 0;
	top: 0;
}
.hoverBox2 h1 {
	transition: all 1s ease;
	text-align: center;
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-100%);
	transition: all 1s ease 0.1s;
	opacity: 0.8;
}
.hoverBox2:hover h1 {
	position: relative;
	top: 0;
	transform: translateY(0%);
	opacity: 1;
}
.hoverBox2:hover img {
	opacity: 0.2;
	object-fit: cover;
	transform: scale(1.5);
}

.hoverBox2 .content {
	color: #f1f1f1; /* Grey text */
	padding: 20px; /* Some padding */
}

.hoverBox2 .content .hoverContent {
	position: absolute;
	top: 100%;
	left: 20px;
	right: 20px;
	transition: top 1s ease, opacity 1s ease;
	opacity: 0;
}
.hoverBox2:hover .content .hoverContent {
	position: relative;
	top: 0;
	right: 0;
	left: 0;
	opacity: 1;
}

.hoverEffect img {
	opacity: 0.2;
}
Run Pen

External CSS

  1. https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.0.2/css/bootstrap.min.css

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.3/js/bootstrap.min.js