Type
magento2-module
Highly customizable vanilla JS tooltip/popover library for Magento 2
magento2-module
MIT
None
None
None
None
None
None
Tippyjs - is a Magento2 module that integrates Tippy library into Magento.
composer require swissup/module-tippyjs
bin/magento setup:upgrade
Basic example:
require(['tippy'], function (tippy) {
// Tippify all titled elements
tippy('[title]');
});
See all available options at official site: https://atomiks.github.io/tippyjs/v6/all-props/
Advanced example (works for dynamically added elements):
require([
'Magento_Ui/js/lib/view/utils/async',
'tippy'
], function ($, tippy) {
$.async('[title]', function (el) {
tippy(el);
});
});