Kevin Powell - Community

KPC

Kevin Powell - Community

A friendly place for developers to meet other devs, ask questions, get help, and just have a good time 🙂.

Join

front-end

resources

back-end

ui-ux

os-and-tools

help

Achieve scrollable content where other content needs to stay in view upon expanding

I didn't know how to word the title since it has limited amount of characters but I will explain bit more here. I have a container that takes the whole screen height (100dvh). In that container I have a footer that's always fixed to the bottom of that container....
No description

bold text when clicked and unbold when other item is clicked

how to make the text bold after i clicked and not bold if i clicked the other item?

mobile height issue

i have a react typescript project with several menus, i use width: 100svw; and the width fits the screen no matter the size for all menus, however this doesn't work the same with height, is there something that would cause this to be different?

[Tailwind] How to Implement Tabs with SubTabs? (check attachment)

The attached image is what I want to do i tried some stuff but not sure how to do it this is so far what I've done : https://codepen.io/Ant-Riddle/pen/yLWbVVB?editors=1000...
No description

How to leave a space between elements in the same paragraph?

I was trying to do it from the frontend mentor challenges. I could not leave a space in the Nutrition section and I could not find how to do it. I attached the code I wrote and the result I got as a picture. Can you help me where I am doing wrong and what kind of perspective I need to do? Note: I have been working on the web for 3 weeks and I am open to other suggestions....
No description

pirate scroll theme

I am trying to make a site where the sections roll down like a pirate scroll and when changed out or in transition roll back up until the section is in view. I have no idea where to start but I am trying to do it for my site @ https://www.fishingwithdummies.site

Is there a safe/convenient way to have an embeddable JS SDK, that allows authenticating?

I am working on a game portal SDK, that will be embedded/used within various HTML5/webgl games. My backend brain would use a generic oauth flow for these kind of things (where it redirects the whole page to /oauth/authorize like URL), but given that the games could be embedded on various websites or at least on the portal website within an iframe, it would be cool if I could (in case of user not being logged in on parent game portal) show a modal or a popup for authenticating (similar to how goo...

Help to deploy React projects in cpanel.

Hello everyone 👋 , please help me to deploy the React project in cpanel , .... My react project is already hosted in GitHub , I want to connect my project to cpanel with my main domain.

Border only in corners

Hello, Could does anybody know how to get borders only in corners? instead of the top border going all the way across only having like 10% of it, and then doing the same thing with the left corner having 10% of it to form like a L in the corner? Thank you.

Fade-away Loading Effect

Hello! So I've been building up this navbar for a while... and yesterday I thought it would be a good idea to add a loading state to it. However, upon putting the final touches, I'm running into a minor inconvenience. I want the loading indicator .navbar-container::after to disappear and come in with the background graident of nav::after. I can do this somewhat with replacing the transparent parameter to the background color, however this makes the navbar not look the best or as easily viewable:...
No description

Possible to change opacity on child elements based on parent sibling selector?

<header> <div class="menu"> <div class="overlay"></div> <div class="blur"></div> </div>...

Looking for advice for how can I make this design possible

#1 In the first image there is a curved line coming from the ending of another section to the beginning of another section(Marked With a Red Arrow Sign). How can I implement this with HTML, CSS, and JS? Letter I will implement it by myself using react and tailwind CSS. You can suggest me some YouTube tutorials or give me a guide to get started. #2 On the second image Icons are inside of a polygon and those polygon positioned in a way wich lool like honeycomb. Can you tell me how can I create thia layout with Html and css?...
No description

Javascript - Sort by Number

as the title suggests, I'm trying to sort by number. This is sorting by string? Any ideas?
if (order == "desc"){ e.target.setAttribute("data-order", "asc"); tableData = tableData.sort((a,b) => a[column] > b[column] ? 1: -1)...

Need help with crazy designer requirement (blending opacity colors)

Hey guys, I have one really interesting feature that I have been trying to implement for quite some time now and I would appreciate the help. The client and designer want to have these galaxy-like animations that will move around and create fancy effects. However, I have a big problem implementing this in CSS, due to how semi-transparent colors are mixed. When you stack two elements with semi-transparent backgrounds, on overlapped areas the color is brightened....
No description

Looking for advice on how to build this navigation

I found a piece of inspiration for navigation design on Framer. Wondering how I would acheive this following proper semantics. The nav is positioned in the center with a border around the container and has a button that is positioned on the right. In the DOM the button is not placed in the nav element. Is there any way to achieve this with keeping the button in the nav?...
No description

i cant += value

moneygetterhaha.value += 1;

Intrinsic image sizes

Just looking to optimize my images (actually using Astro, but I'm leaning towards the raw picture tag because it seems like it has more flexibility) The width and height attributes are intrinsic values right? ie not how big I'd like to render the image, but how big the image is on my HDD. I swear I see the former definition used everywhere? I'd then use the sizes attribute (in a picture tag) or css to set the render sizes with relevant breakpoints? Thanks,...

Nested grid

can we remove the nested grid out from its grid to its parent grid ?

Jittering infinite horizontal scroll animation tailwindcss

Hi, I am currently working on implementing a infinite scrolling horizontal component in one of my projects. My current implementation almost works but when the scroll loops back around to the beginning it jitters and stutters instead of looping back smoothly. Can someone help me figure out how to get rid of this jitter and make the animation smooth? Here is a tailwind playground environment with the reproduced issue in a simplified setting: https://play.tailwindcss.com/QEIuz1dYBX...