bootstrap-popover-on-hover
Version:
Responsive Popover on hover built with Bootstrap 5. Examples of custom html, directions, images & more.
42 lines (40 loc) • 1.41 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>Material Design for Bootstrap</title>
<!-- MDB icon -->
<link rel="icon" href="img/mdb-favicon.ico" type="image/x-icon" />
<!-- Font Awesome -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
/>
<!-- Google Fonts Roboto -->
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&display=swap"
/>
<!-- MDB -->
<link rel="stylesheet" href="css/mdb.min.css" />
</head>
<body>
<div class="container mt-3" style="max-width: 400px;">
<img
src="https://mdbcdn.b-cdn.net/img/new/standard/city/041.webp"
class="img-thumbnail"
alt="Hollywood Sign on The Hill"
data-mdb-toggle="popover"
title="Popover title"
data-mdb-content="And here's some amazing content. It's very engaging. Right?"
data-mdb-trigger="hover"
/>
</div>
<!-- MDB -->
<script type="text/javascript" src="js/mdb.min.js"></script>
<!-- Custom scripts -->
<script type="text/javascript"></script>
</body>
</html>