---
title: "Tooltip in CSS with fading  animation"  
description: "Tooltip in CSS with fading  animation"  
author: "Ethan Karla"  
published: 2021-07-15  
canonical: https://answers.mindstick.com/qa/93709/tooltip-in-css-with-fading-animation  
category: "programming"  
tags: ["css", "css cascading style sheets"]  
reading_time: 3 minutes  

---

# Tooltip in CSS with fading  animation

How to [add](https://yourviews.mindstick.com/story/4883/5-signs-you-need-to-add-more-protein-to-your-diet) [CSS](https://www.mindstick.com/articles/12349/a-step-by-step-guide-to-making-pure-css-tooltips) [tooltip](https://www.mindstick.com/articles/1529/simple-tooltip-using-html-css) with a fading [animation](https://www.mindstick.com/articles/13040/seven-helpful-tips-to-start-and-grow-an-animation-video-company)? [Explain](https://yourviews.mindstick.com/view/86025/content-created-for-humans-not-for-bots-explain-this-statement) with the help of example?\

## Answers

### Answer by Shivam Prajapati

Animated tooltip is text that pops up when you hover over a particular element that contains some information. You can see this popup on a product page, delivery page or anywhere else in an several websites. Let's understand with the help of an example :

```
<!DOCTYPE html>
<html lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
    <meta charset='utf-8' />
    <title>Tooltip | Mindstick</title>
    <style>
        .d-flex {
            display: flex;
        }
        .justify-content-center {
            justify-content: center;
        }
        .align-items-center {
            align-items: center;
        }
        .flex-column {
            flex-direction: column;
        }
        .tooltip {
            position: relative;
            display: inline-block;
            border-bottom: 1px dotted black;
        }
            .tooltip .tooltiptext {
                visibility: visible;
                width: 120px;
                background-color: #f0ad4e;
                color: #fff;
                text-align: center;
                border-radius: 6px;
                padding: 5px 0;
                position: absolute;
                z-index: 1;
                bottom: 100%;
                left: 50%;
                margin-left: -60px;
                opacity: 0;
                transition: opacity 2s;
            }
            .tooltip:hover .tooltiptext {
                visibility: visible;
                opacity: 1;
            }
    </style>
</head>
<body>
    <section class='d-flex justify-content-center flex-column align-items-center'>
        <h2>Animated Tooltip Example</h2>
        <p>Move your mouse cursor over the below heading</p>
        <div class='tooltip'>
            <strong> Welcome to Mindstick Software Private Limited</strong>
            <span class='tooltiptext'>Unleash your imagination</span>
        </div>
    </section>
</body>
</html>
```

Hope this makes you understand about Tooltip easily. Happy Coding! \


---

Original Source: https://answers.mindstick.com/qa/93709/tooltip-in-css-with-fading-animation

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
