Skip to content

Commit 250551e

Browse files
committed
Scroll screen to card
1 parent 6e275ae commit 250551e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/tenfoot-navigation.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,17 @@ class TenFootNavigator {
101101
}
102102
}
103103

104+
document.querySelectorAll('.service-card').forEach(card => {
105+
card.addEventListener('focus', () => {
106+
card.scrollIntoView({
107+
behavior: 'smooth',
108+
inline: 'center',
109+
block: 'nearest'
110+
});
111+
});
112+
});
113+
114+
104115
// Initialize when DOM is ready
105116
if (document.readyState === 'loading') {
106117
document.addEventListener('DOMContentLoaded', () => {

0 commit comments

Comments
 (0)