Skip to content

Commit

Permalink
fix ui in small devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Hetari committed Sep 24, 2024
1 parent e1b6b29 commit 7567b41
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/components/design/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,14 @@
};
onMounted(() => {
gsap.set(['#quote-text .letters', '#current-index'], {
translateY: 0,
});
gsap.set('#quote-overlay', {
translateY: '100%',
});
if (!isSmallScreen) {
gsap.set(['#quote-text .letters', '#current-index'], {
translateY: 0,
});
gsap.set('#quote-overlay', {
translateY: '100%',
});
}
});
// data
Expand Down

0 comments on commit 7567b41

Please sign in to comment.