1
1
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:
2024-08-01 22:23:14 +05:30
parent 646438383a
commit a6fa2a96e7
10 changed files with 209 additions and 11 deletions

View File

@@ -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
});