vince
vince
Explore posts from servers
KPCKevin Powell - Community
Created by vince on 3/13/2025 in #front-end
Parallax / floating effect
Ty let me try that!
5 replies
KPCKevin Powell - Community
Created by Pat66 on 3/13/2025 in #front-end
Begin on Lenis scroll
Oh you're using a library that uses gsap?
11 replies
KPCKevin Powell - Community
Created by Pat66 on 3/13/2025 in #front-end
Begin on Lenis scroll
This might not be what you're looking for but I'm pretty sure gsap has a way to do this pretty easily
11 replies
KPCKevin Powell - Community
Created by vince on 3/13/2025 in #front-end
Parallax / floating effect
I think I got something kind of working and really all I did was make the transition timing longer but it still looks kind of off to me, maybe I'm going crazy though 😅
5 replies
KPCKevin Powell - Community
Created by markeya on 3/12/2025 in #front-end
Extra space, missing space and breakpoint adjustment
I'll take a look at this tomorrow if no one answers just remind me
18 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 3/9/2025 in #front-end
Do I use fixed height of 100vh for the hero/ first section ?
Could do either but I'd use an image since it'll make it easier to position the text
7 replies
KPCKevin Powell - Community
Created by i_lost_to_loba_kreygasm on 3/9/2025 in #front-end
Do I use fixed height of 100vh for the hero/ first section ?
I'd use min-height vh / dvh or some variation personally for the hero section
7 replies
KPCKevin Powell - Community
Created by vince on 3/3/2025 in #front-end
Confused by useEffect in React
I think you're right honestly I had no idea this could even be done with css otherwise I would have, it's gotta be faster / more lightweight to compute
18 replies
KPCKevin Powell - Community
Created by vince on 3/3/2025 in #front-end
Confused by useEffect in React
Yea I got it working with React it's moreso a question of useEffect
18 replies
KPCKevin Powell - Community
Created by vince on 3/3/2025 in #front-end
Confused by useEffect in React
I didn't even know that was a thing you could do in css, thank you haha
18 replies
KPCKevin Powell - Community
Created by ghoul on 3/4/2025 in #front-end
DropDown faq Problem
If you placed it in a codepen / similar I can take a look if you're still curious to find a better way. I think using absolute is fine here and you could also use a negative margin, just not sure how you have it set up within your css
4 replies
KPCKevin Powell - Community
Created by vince on 3/3/2025 in #front-end
Confused by useEffect in React
Doesn't answer my questions if I'm being honest but ty!
18 replies
KPCKevin Powell - Community
Created by vince on 3/3/2025 in #front-end
Confused by useEffect in React
Another question I have is why we even need to use useEffect here at all? The React docs say that useEffect should be used when syncing React to an external system (like a backend / api calls). Here I thought we could just use a setTimeout without the useEffect but I couldn't get that to work, and all the solutions online that I saw use useEffect. I figured if we have a setTimeout without one then we can update the state inside that timeout and it would still trigger a rerender (since the state changes) but that didn't seem to be the case
18 replies
KPCKevin Powell - Community
Created by vince on 3/3/2025 in #front-end
Confused by useEffect in React
Sure, it's more of a conceptual question but here it is in action: https://codesandbox.io/p/sandbox/dlcgx5 It's under hooks/useTypewriter.js
18 replies
KPCKevin Powell - Community
Created by Nass on 2/27/2025 in #front-end
How do i make this design in html/css do i use css grid or postion absolute or is there something el
Do you have the files / images for this? I'd love to give it a try for fun
11 replies
KPCKevin Powell - Community
Created by omar_ab(@om4rAb) on 2/18/2025 in #front-end
Having hard time making Image fits the height | not easy as you think
I've never used Angular
107 replies
KPCKevin Powell - Community
Created by omar_ab(@om4rAb) on 2/18/2025 in #front-end
Having hard time making Image fits the height | not easy as you think
I thought the same thing but the image appears to be decorative anyway
107 replies
KPCKevin Powell - Community
Created by omar_ab(@om4rAb) on 2/18/2025 in #front-end
Having hard time making Image fits the height | not easy as you think
1 minute going to be in a call but basically min height just sets the minimum height and then height lets it take up available space I believe
107 replies
KPCKevin Powell - Community
Created by omar_ab(@om4rAb) on 2/18/2025 in #front-end
Having hard time making Image fits the height | not easy as you think
Great! Yea I'd still use some min-height of a px value though so that you don't get a weird distortion when you're in portrait / open dev tools. You'll have to do some fiddling though
107 replies
KPCKevin Powell - Community
Created by omar_ab(@om4rAb) on 2/18/2025 in #front-end
Having hard time making Image fits the height | not easy as you think
If you remove the border you're still getting a scroll bar?
107 replies