# Tooltips in Webflow with tippy.js

Tutorial3 minPublished on Jun 05, 2024Updated on ![Tippy.js Tooltip](https://cdn.prod.website-files.com/67053868fc01e494462e71c9/6710cdd7996985033ec5c21a_6660147826e89ff89a6bf0d4_thumbnail-tippy-js.jpeg)Table of contents

[

Copied](#)[

](#)[

](#)[

](#)
- [H2 Example](#)

Use AI to summarize this article[

ChatGPT](#)[

Claude](#)[

Grok](#)[

Perplexity](#)[

Google AI](#)Key points- 

**Tooltips** are an effective way to enhance the user experience (UX) of your website by providing **contextual information** without cluttering the user interface (UI).

In this article, we will show you how to **easily add tooltips to your Webflow projects** using tippy.js, a lightweight and powerful JavaScript library.

## What is tippy.js?

**tippy.js is a lightweight JavaScript library** that allows you to **create customizable tooltips**. Built on [Popper.js](https://popper.js.org/docs/v2/), it offers optimal performance and great flexibility. With tippy.js, you can easily add tooltips to your HTML elements and customize them according to your needs.

## Why use tippy.js with Webflow?

In Webflow, there is no native way to create "true" tooltips. It is possible to create them from scratch, but it requires animation work.

However, to add tooltips within the tool, tippy.js is an excellent choice for several reasons:

**Easy integration**: tippy.js is straightforward to integrate.
- **Customization**: You can customize the tooltips to maintain design consistency with your site.
- **Performance**: Lightweight and fast, tippy.js will not affect the loading speed of your pages.
- **Flexibility**: Compatible with various types of content and interactions.

## Step-by-step: Adding tippy.js to your Webflow project

Follow these simple steps to integrate tippy.js into your Webflow project and start adding tooltips.

### 1. Include tippy.js in your Webflow project

First, you need to include the CSS and JavaScript files for tippy.js in your project. To do this, go to the **page settings** and scroll down to the **Custom Code** tab.

Add the CSS link and the JavaScript scripts in the **Head Code** and **Footer Code** sections, respectively:

`<!-- Add this link in the Head Code section -->
<link rel="stylesheet" href="https://unpkg.com/tippy.js@6/dist/tippy.css">`
```
`<!-- Add these scripts in the Footer Code section -->
<script src="https://unpkg.com/@popperjs/core@2/dist/umd/popper.min.js"></script>
<script src="https://unpkg.com/tippy.js@6/dist/tippy-bundle.umd.js"></script>`
```
![Screenshot of the scripts and CSS tippy.js added to a Webflow page](https://cdn.prod.website-files.com/67053868fc01e494462e71c9/6710cdd8996985033ec5c2b3_666017c2f4437ea630ab532a_cdn-tippy-js-webflow.webp)

### 2. Add tooltips to your elements

Now that tippy.js is included in your project, you can start adding tooltips to your HTML elements. For this, we will add the custom attribute **data-tippy-content** in the element settings.

For example, to add a tooltip to a button, follow these steps:

- Add a button to your page
- Select the button and go to its **Settings**.
- Scroll down to the **custom attributes** section
- Add a new attribute with **data-tippy-content** as the **name** and the **tooltip text** as the **value**.

![Screenshot of a button in Webflow with the attribute [data-tippy-content="I am the text"]](https://cdn.prod.website-files.com/67053868fc01e494462e71c9/6710cdd8996985033ec5c2af_666018a6656207cdbf9f0474_attribute-data-tippy-content-webflow.webp)

Here is an example of a button with a tooltip; it has **name: data-tippy-content** and **value: Free Live Webflow Training Every Thursday**

[Surprise 👀](https://www.youtube.com/@digidop/streams)

### 3. Initialize tippy.js

To make the tooltips appear, you need to initialize tippy.js.

To do this, add the initialization script in the **custom code (before body Tag)** section of your Webflow page.

`<script> tippy('[data-tippy-content]'); </script>`![Initialization of the tippy.js script](https://cdn.prod.website-files.com/67053868fc01e494462e71c9/6710cdd8996985033ec5c2c9_6660191de662f4c25345fcce_initialisation-script-tippy.webp)

### 4. Customize your tooltips

tippy.js offers a variety of customization options. You can configure the animation, theme, display delays, and much more.

Check out the [tippy.js documentation](https://atomiks.github.io/tippyjs/) to add advanced features to your tooltip and to match your design.

For example, here is a more customized button example below.

[Custom Surprise 👀](https://www.youtube.com/@digidop/streams)

Here are the custom attributes of this button:

- data-tippy-followCursor="horizontal"
- data-tippy-theme="digidop"
- data-tippy-duration="300"

Here is the CSS code to create the "digidop" theme:

`<style>
.tippy-box[data-theme~='digidop'] {
 background-color: #FCD33B;
 color: #101010;
}
.tippy-box[data-theme~='digidop'][data-placement^='top'] > .tippy-arrow::before {
 border-top-color: #FCD33B;
}
.tippy-box[data-theme~='digidop'][data-placement^='bottom'] > .tippy-arrow::before {
 border-bottom-color: #FCD33B;
}
.tippy-box[data-theme~='digidop'][data-placement^='left'] > .tippy-arrow::before {
 border-left-color: #FCD33B;
}
.tippy-box[data-theme~='digidop'][data-placement^='right'] > .tippy-arrow::before {
 border-right-color: #FCD33B;
}
</style>`‍

### Conclusion

By following these simple steps, you can easily add stylish and customized tooltips to your [Webflow projects](/webflow) using tippy.js. Not only does this enhance the user experience, but it also adds a professional touch to your site.

Feel free to further explore the options in tippy.js to make the most of this powerful library.

Discover other useful JavaScript libraries:

- [Lenis Smooth Scroll](/blog/lenis-smooth-scroll)
- [GSAP x Webflow](/blog/how-to-create-first-gsap-animations)
- [Splide JS Guide](/blog/guide-sliders-splide-js)

[

](#)![Thibaut Legrand](https://cdn.prod.website-files.com/67053868fc01e494462e71c9/678a47ec4cabceb0d6aa7c2e_thibaut-website%20(1).webp)Thibaut LegrandCofounder at Vydera & Technical Solutions Architect[

](/team/thibaut-legrand)[

](https://www.linkedin.com/in/thibaut-legrand-digidop/)[

](https://twitter.com/lgd_thibaut)+1200 readers

## Stay ahead of the curve!
Subscribe now for expert insights.

[Subscribe

](https://digidop.substack.com/subscribe)![Preview Digidop Newsletter](https://cdn.prod.website-files.com/6705382c85d21c496de94fa5/671231c436687e9d40d995e9_newsletter-digidop.webp)[Preview Newsletter

](https://digidop.substack.com/)

## Suggested articles

![Collage of homepages from B2B SaaS agencies including Digidop, Vydera, FlowNinja, OFF+BRAND, Yuri & Neil, MetaLab, Shakuro and Ramotion](https://cdn.prod.website-files.com/67053868fc01e494462e71c9/6ab922fa556f97c19ea7db9a_Best%20B2B%20SaaS%20Agencies%20in%202026_EN.webp)DocumentationAll blog post

### Top 20 Web & Digital Agencies for B2B SaaS in 2026

[Top 20 Web & Digital Agencies for B2B SaaS in 2026](/blog/best-b2b-saas-agencies)Top 20 Web & Digital Agencies for B2B SaaS in 2026![Webflow Source interface showing AI agents, website editing, and role-based Views in a unified workspace.](https://cdn.prod.website-files.com/67053868fc01e494462e71c9/6a9fa9f8608ffcc774c47eb7_source%20(1).webp)NewsDevelopmentAll blog post

### Webflow launches Source. Our take on this shift.

[Webflow launches Source. Our take on this shift.](/blog/webflow-launches-source)Webflow launches Source. Our take on this shift.![Citation rate by AI platform: ChatGPT 100%, Perplexity 100%, Gemini 67%, and Claude 0%.](https://cdn.prod.website-files.com/67053868fc01e494462e71c9/6a9044c13914f1d6ac3e9161_citation.jpg)DocumentationAIAll blog post

### Make Your Website Visible in ChatGPT, Perplexity, and AI Answers

[Make Your Website Visible in ChatGPT, Perplexity, and AI Answers](/blog/make-your-website-visible-in-chatgpt-perplexity-and-ai-answers)Make Your Website Visible in ChatGPT, Perplexity, and AI Answers[See all articles

](/blog)Every great website  
starts with a conversation[Talk to an expert

](/contact)[Book a call

](/calendly)![Abstract composition of black and gold metallic ribbons with elegant light reflections and smooth gradients. A premium background conveying luxury, modernity, and innovation.](https://cdn.prod.website-files.com/6705382c85d21c496de94fa5/6a69a346549deffabdf98afa_shape-cta-footer.webp)