التصميم والموارد
مولد CSS للتولتيب
إنشاء مقتطفات CSS للتولتيب.
الإدخال
مولد CSS للتولتيب
tooltipCSSui componentdesign
الإخراج
مولد Tooltip CSS
.tooltip {
position: relative;
display: inline-flex;
border-radius: 12px;
padding: 8px 15px;
background: white;
color: #111827;
border: 1px solid rgba(15,23,42,0.12);
}
.tooltip::after {
content: attr(data-tip);
position: absolute;
left: 50%;
bottom: calc(100% + 10px);
transform: translateX(-50%) scale(0.97);
opacity: 0;
transition: opacity 0.3s ease, transform 0.3s ease;
background: #f8fafc;
color: #111827;
border-radius: 6px;
padding: 6px 10px;
white-space: nowrap;
}
.tooltip:hover::after {
opacity: 1;
transform: translateX(-50%) scale(1);
}مباشر معاينة
Live canvas

