mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-19 17:03:01 +05:30
(feat): added tooltips in flotingbar using popper.js and tippy.js
This commit is contained in:
36
htdocs/assets/js/tippy-config.js
Normal file
36
htdocs/assets/js/tippy-config.js
Normal file
@@ -0,0 +1,36 @@
|
||||
//--- controls tooltips and popover elements
|
||||
|
||||
tippy('#searchbar', {
|
||||
content: "ALT + K",
|
||||
theme: 'neosubhamoy',
|
||||
animation: 'shift-away',
|
||||
delay: 500,
|
||||
touch: false
|
||||
});
|
||||
|
||||
tippy('#sharebutton', {
|
||||
content: "ALT + L",
|
||||
theme: 'neosubhamoy',
|
||||
animation: 'shift-away',
|
||||
delay: 500,
|
||||
touch: false
|
||||
});
|
||||
|
||||
tippy('#closebutton', {
|
||||
content: "ESC",
|
||||
placement: 'right',
|
||||
theme: 'neosubhamoy',
|
||||
animation: 'shift-away',
|
||||
delay: 500,
|
||||
touch: false
|
||||
});
|
||||
|
||||
tippy('#shareclosebutton', {
|
||||
content: "ESC",
|
||||
placement: 'right',
|
||||
theme: 'neosubhamoy',
|
||||
animation: 'shift-away',
|
||||
delay: 500,
|
||||
touch: false
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user