1. Home
  2. /
  3. Tachyons
  4. /
  5. Tooltip Example

Tooltip Example - Tachyons Typing CST Test

Loading…

Tooltip Example — Tachyons Code

Demonstrates tooltips using Tachyons classes and JS.

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tachyons/4.12.0/tachyons.min.css">
	<title>Tachyons Tooltip</title>
	<style>.tooltip{position:relative;display:inline-block;}
	.tooltip .tooltiptext{visibility:hidden;width:120px;background-color:black;color:#fff;text-align:center;padding:5px 0;border-radius:6px;position:absolute;z-index:1;bottom:125%;left:50%;transform:translateX(-50%);}
	.tooltip:hover .tooltiptext{visibility:visible;}</style>
</head>
<body class="pa4 tc">
	<div class="tooltip">
		<button class="f6 link dim br2 ph3 pv2 dib bg-blue white">Hover Me</button>
		<span class="tooltiptext">I am a tooltip</span>
	</div>
</body>
</html>

Tachyons Language Guide

Tachyons is a functional CSS framework that emphasizes small, reusable utility classes to build fast, responsive, and highly maintainable user interfaces.

Primary Use Cases

  • ▸Highly optimized and lightweight web pages
  • ▸Performance-focused websites
  • ▸Rapid prototyping using utility classes
  • ▸Responsive design projects without heavy JS
  • ▸Custom UI design without prebuilt components

Notable Features

  • ▸Atomic/utility-first CSS approach
  • ▸Responsive helpers for mobile-first design
  • ▸Lightweight and fast-loading
  • ▸Composable classes for flexible layouts
  • ▸No JS components included

Origin & Creator

Created by Adam Morse in 2013 as a minimalist and performance-focused CSS framework.

Industrial Note

Tachyons is popular in projects prioritizing speed, maintainability, and functional CSS over component-heavy frameworks.

More Tachyons Typing Exercises

Tachyons Counter ExampleTachyons Navbar ExampleTachyons Card ExampleTachyons Modal ExampleTachyons Tabs ExampleTachyons Accordion ExampleTachyons Slideshow ExampleTachyons Progress Bar Example

Practice Other Languages

CReactPythonC++RustTypeScriptKotlinPHPJavaC#RubyMqlCqlN1qlCypher