Tooltip
How do I make an tooltip?
CSS Tooltip. What is a tooltip? How do you make a tooltip? This script and codes were developed by John Heiner on 04 December 2022, Sunday.
Tooltip - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Tooltip</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <i class="has-tooltip"> <span class="tooltip"> Tooltip text </span> <a href="#" class="btn">Hover for Tooltip</a>
</i>
</body>
</html>
Tooltip - Script Codes CSS Codes
*, *:before, *:after { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body { font-size: 1.2rem; font-family: "Open Sans", sans-serif; color: #444; background-color: #fff; -webkit-font-smoothing: antialiased; margin: 0; padding: 4rem; overflow: hidden; text-align: center;
}
.btn { display: inline-block; padding: 1em 1.6em; border-radius: 999px; border: 2px solid #f28e0a; margin-top: 2rem; color: #f28e0a; font-weight: bold; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
}
.has-tooltip { position: relative; font-style: normal;
}
.has-tooltip:hover { cursor: help;
}
.has-tooltip:hover .tooltip { visibility: visible; opacity: 1; -webkit-transform: rotateX(0deg) scale(1); transform: rotateX(0deg) scale(1); pointer-events: auto;
}
.tooltip { text-transform: uppercase; position: absolute; bottom: 120%; width: 160px; padding: .75rem 1rem; border-radius: 6px; text-indent: 0; white-space: normal; text-align: center; color: #fff; display: block; visibility: hidden; pointer-events: none; z-index: 1; opacity: 0; -webkit-transition: all 250ms; transition: all 250ms; -webkit-transform: rotateX(20deg) scale(0.8); transform: rotateX(20deg) scale(0.8); font-size: 0.625rem; background: rgba(0, 0, 0, 0.9); left: 50%; margin: 0 0 5px -80px; -webkit-transform-origin: center 120%; transform-origin: center 120%;
}
.tooltip:after { content: ""; position: absolute; top: 100%; width: 0; border: 7px solid transparent; border-top: 5px solid #333; border-top-color: rgba(0, 0, 0, 0.9); left: 50%; margin-left: -7px;
}
Developer | John Heiner |
Username | johnheiner |
Uploaded | December 04, 2022 |
Rating | 3 |
Size | 2,863 Kb |
Views | 24,288 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Logo Animation | 4,438 Kb |
Page Transition with Loader | 3,824 Kb |
SVG line hover | 1,648 Kb |
Animated River Depth measurement | 5,247 Kb |
Breaking Lists at specific points without floats. | 1,962 Kb |
A Pen by John Heiner | 3,599 Kb |
Rounded Triangle | 2,124 Kb |
Passport Flip Open with GSAP | 3,400 Kb |
Loading Icon | 1,987 Kb |
Bouncy Box | 3,423 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Import shader in three.js | Khangeldy | 2,636 Kb |
Flexbox playground | Enxaneta | 5,418 Kb |
E-mail Template | SoloMDFK | 4,871 Kb |
Css3 loader | Clknap | 2,391 Kb |
Importable Clearfix | Corysimmons | 1,411 Kb |
Fireworks Show | Arianalynn | 3,048 Kb |
Default Input, Textareas, Submits, and Buttons in iOS | Demersdesigns | 2,334 Kb |
Vue Transition | Chenming142 | 4,561 Kb |
Day 11 - Calendar Card | Arnellebalane | 6,984 Kb |
Pruebas de d3.js | Juanmanuelcarnerero | 2,485 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!