SVG With Pure CSS Tooltip

Developer
Size
2,002 Kb
Views
89,056

How do I make an svg with pure css tooltip?

What is a svg with pure css tooltip? How do you make a svg with pure css tooltip? This script and codes were developed by Andy Hoffman on 24 August 2022, Wednesday.

SVG With Pure CSS Tooltip Previews

SVG With Pure CSS Tooltip - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>SVG With Pure CSS Tooltip</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <svg xmlns="http://www.w3.org/2000/svg" style="display: none;"> <symbol id="icon-stack" viewBox="0 0 16 16"> <title>stack</title> <path class="path1" d="M16 5l-8-4-8 4 8 4 8-4zM8 2.328l5.345 2.672-5.345 2.672-5.345-2.672 5.345-2.672zM14.398 7.199l1.602 0.801-8 4-8-4 1.602-0.801 6.398 3.199zM14.398 10.199l1.602 0.801-8 4-8-4 1.602-0.801 6.398 3.199z"></path> </symbol>
</svg>
<div class="wrapper" data-tip="SVG Tooltip (almost)"> <svg class="icon icon-stack"><use xlink:href="#icon-stack"></use></svg>
</div>
</body>
</html>

SVG With Pure CSS Tooltip - Script Codes CSS Codes

@import url(https://fonts.googleapis.com/css?family=Arimo);
@keyframes color_change { 0% { color: #41B9D1; } 20% { color: #9BFF1B; } 40% { color: #F27E18; } 60% { color: #FFD700; } 80% { color: #FF0066; } 100% { color: #41B9D1; }
}
body { background: black;
}
.icon {	width: 100%;	height: 100%;	display: block;	fill: currentColor;
}
.wrapper { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 10em; height: 10em; color: #41B9D1; position: absolute; animation: color_change 8s infinite alternate;
}
.wrapper:after { font-family: Arimo; position: absolute; left: 50%; transition: 0.5s; content: attr(data-tip); white-space: nowrap; opacity: 0; font-size: 1.5rem; transform: translate(-50%, 0);
}
.wrapper:hover:after { position: absolute; opacity: 1; transform: translate(-50%, 0.5em);
}
SVG With Pure CSS Tooltip - Script Codes
SVG With Pure CSS Tooltip - Script Codes
Home Page Home
Developer Andy Hoffman
Username antibland
Uploaded August 24, 2022
Rating 3
Size 2,002 Kb
Views 89,056
Do you need developer help for SVG With Pure CSS Tooltip?

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!

Andy Hoffman (antibland) Script Codes
Create amazing SEO content with AI!

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!