Skip to content

Commit f11857a

Browse files
Fix trigger positioning issue
1 parent c878335 commit f11857a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

frontend/src/components/Footer/FooterTitle.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ const FooterTitle = () => {
5252
ease: "power3.out",
5353
scrollTrigger: {
5454
trigger: ftConRef.current,
55-
start: "top 85%",
56-
end: "top 70%",
55+
start: "top 90%",
56+
end: "top 80%",
5757
scrub: true,
5858
// markers: true
5959
}
@@ -69,7 +69,7 @@ const FooterTitle = () => {
6969
}, { scope: ftConRef });
7070

7171
return (
72-
<section ref={ftConRef} className='relative z-1 w-screen h-[50vh] border-1 border-t-[#c4c1b9]'>
72+
<section ref={ftConRef} className='relative z-1 w-screen h-[40vh] border-1 border-t-[#c4c1b9]'>
7373
<div className='w-full flex justify-between items-center px-6 mt-8'>
7474
<p className='text-[#b1a696] text-[0.7rem]'>
7575
Website made by—<a href="#" className='text-[#f2ede5]'>Moyra.co</a>
@@ -83,7 +83,7 @@ const FooterTitle = () => {
8383
</div>
8484

8585
<div className='footer-title w-full text-center'>
86-
<h1 className='text-[15vw] font-bold'>
86+
<h1 className='text-[18vw] font-bold'>
8787
Capsules<sub>®</sub>
8888
</h1>
8989
</div>

frontend/src/components/Footer/footertitle.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.footer-title {
22
position: absolute;
3-
top: 50%;
3+
top: 60%;
44
left: 50%;
55
transform: translate(-50%, -50%);
66
width: 100%;
@@ -28,7 +28,7 @@
2828

2929
/* Specific styling for the ® symbol */
3030
.footer-title h1 sub.ftChar {
31-
font-size: 0.5em;
31+
/* font-size: 0.5em; */
3232
/* Make ® smaller */
3333
vertical-align: super;
3434
bottom: 0;

0 commit comments

Comments
 (0)