Create Animated Tooltip Popups in HTML/CSS | No JavaScript Needed!
This tutorial includes how to make tooltip popup in css without javascript.
Youtube link -Youtube
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>pop up</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body{
display: flex;
min-height: 100vh;
align-items: center;/****/
justify-content: center; /****/
background: #88ca9b;
}
.container{
max-width: 550px;
margin: 0 20px;
background: hsl(68, 23%, 82%);
box-shadow: 0 5px 10px rgba(251, 14, 14, 0.409);
padding: 40px 40px;
border-radius: 12px;
}
.container p{
font-size: 18px;
font-weight: 400;
text-align: justify;
}
.container p a{
position: relative;
text-decoration: none;
}
.container p a span{
position: absolute;
height: 37px;
min-width: 150px;
background: #0e7adf;
border-radius: 25px;
text-align: center;
line-height: 37px;
color: #fff;
font-size: 16px;
top: -44px;
left: 50%;
transform: translate(-40%, -20px);
opacity: 0;
pointer-events: none;
transition: all 0.3s ease;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.container p a:hover span {
opacity: 1;
pointer-events: auto;
transform: translate(-50% , 0);
}
.container p span::before{
content: '';
position: absolute;
height: 15px;
width: 15px;
background: #0e7adf;
bottom: -6px;
left: 50%;
z-index: -1;
transform: translate(-50%) rotate(45deg);
}
.container p a:hover{
text-decoration: underline;
}
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.2/css/all.min.css">
</head>
<body>
<div class="container">
<p>Hello friends, it's me Dhawneet and I'm a Youtuber. My youtube channel name is <a href="#">dhawneetg<span>Visit YouTube<i class="fab fa-youtube"></i></span></a>. On my channel I have been uploading several video tutorial of HTML CSS &
JavaScript with free source code on my <a href="#">Website <span>Visit Website</span></a>. If you will get any quries related my tutorial then you can send me message anytime on <a href="#">Facebook<span>Visit Facebook<i class="fab fa-facebook"></i></span></a>or
<a href="#">Instagram<span>Visit Instagram<i class="fab fa-instagram"></i></span></a>. I will available for you.</p>
</div>
</body>
</html>
I hope it helps you

.jpeg)
thanks
ReplyDelete