mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-20 02:19:34 +05:30
(feat): added hoverable project info tooltip card
This commit is contained in:
@@ -34,3 +34,16 @@ tippy('#shareclosebutton', {
|
||||
touch: false
|
||||
});
|
||||
|
||||
tippy('.projectitem', {
|
||||
content(reference) {
|
||||
const projectId = reference.getAttribute('data-template');
|
||||
const projectTippyTemplate = document.getElementById(projectId);
|
||||
return projectTippyTemplate.innerHTML;
|
||||
},
|
||||
allowHTML: true,
|
||||
placement: 'right',
|
||||
theme: 'neosubhamoy',
|
||||
animation: 'scale-subtle',
|
||||
touch: false
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user