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

Self Positioning modal

I wanted advice on how should I go about this , should just simply calculate the space anytime an item is hovered with JS and add classes or is there any better CSS only way or any simpler approach

Is this Possible by Clip-paths and is it possible to animate Clip-paths ?

Hello everyone, can anyone help me with a design and animation question? I'm wondering what the best approach would be for creating this design. Should I use SVG animation or curves? I've tried using curves, but I couldn't get the shapes I wanted. Thank you in advance for your help.
No description

mousemove events

Hi everyone I'm a beginner with javascript I 'm learning mousemove events I have this code ...

font-size discrepancy using rem

Hey guys I am doing a project and I am new to front-end. Doing so, I found something which I cant understand. Could you guys help me with that. My browser: 1rem = 16px If i set font-size on using join__cards *....i get expected font-size. But if i set that on its grand-parent div...even though font-size is inhereted (You can see this in the screenshot) font-size is unexpected. I dont understand why this is happening. ...
No description

Unable to change SVG icons color in react

I have downloaded svg files and added fill = "currentColor" to each individual . THen i created a file to export these svg, so i can use it in other components. THis is where the issue happens, i cant change the color via CSS , i even added !important, still its showing default black color. ANyone knows how to fix it? ```js...

SECURING CSS CODE

How to secure and protect the css code from "source code"? Like when you click the stylesheets file from the html you will be redirected to minified css code

How do I import swiper.js package from node_modules into my main js.file?

Hey guys, So I downloaded the swiper.js packackge via npm and did exactly what the doc says but it doesnt work?!!? I even tried to import with relative path but it still does not work. So how do I have to import it?!...
No description

Is there a website or a repository in which we can see when CSS features were added?

Sometimes I'll be looking up a feature on CanIUse or developer.mozilla.org to check its compatibility, since I've been seeing some pretty useful features pop in and out, but some of them are still experimental and all, and some seemingly older ones still have some issues, while others are deprecated. So my question is, is there a place where one can find what year, version, etc. a property came out? And, second question, where can I keep myself updated with current and upcoming ones?

Date Input field for birthday, 'masking' the user input, incorporating 'show' button

I'm trying to create a birthday date input field inside of a React-bootstrap 'Form'. What I want it to do: Have "mm/dd/yyyy" as a placeholder ...
No description

How to horizontally center an element with translated content outside of it's width

I have a heading h3:
<h3>This is the width <span>extend</span></h3>
<h3>This is the width <span>extend</span></h3>
```css...
No description

Issue with Vite project

Hello everyone, I'm having an issue with the Vite project. The issue is when I run the command npm run dev I have an error: The specific module could not be found....

How can I make the top of this overlay transparent?

Hey guys I got this code and you can see it looks like like a "box"but I'm trying to make the top more transparent so it kinda fades it. not sure how to get this, any ideas? ```css .blog-post .black-overlay {...
No description

Text in Responsive Background Image Overflow

```css .background-image-anime { width: 100%; background-size: 100% auto; background-image: url('../assets/ezgif-3-d2831f8743.gif');...
No description

What tag should be used in the shown section?

What tag should I use in the part where there is a photo, which is the best approach?
No description

What should I do to this svg background (I'm new here and still learning)

it seems like this svg image that I'm going to put it to the background of my heading section seems a bit smaller than my screen (Svg background seems fit only 1440x but my screen is 2048x. And What should I do or design to make this 'svg' perfect?. I'm quite really hard and new thing for me to design this
No description

Guidance To UI Design

I am Trying to replicate this UI. I have tried to replicate them but the steps are not aligning properly. how can I align them . , Can you please tell how can I Do it . Please find the codesandbox link : https://codesandbox.io/p/sandbox/floral-cdn-7n2c7t?file=%2Fsrc%2Findex.css%3A9%2C2
No description

How to add two different background images on the body

Guys, how do I add these two SVGs so that the first is at the top of the document and the second is at the end? I painted them red just for you to see. Repo: https://github.com/sircarloschaves/social-proof-section...
No description

Images not displaying in React production build

I'm facing an issue with my React app deployed on production where the images from my images folder are not displaying. Locally, everything works fine during development, but after deploying the app, none of the pictures are showing up. my goal is to import my entire image folder to the website I've tried to use import images but no luck My project structure looks like this:...
No description

How to select previous sibling

If you run this code, the .last button will increase its width when the .central button gets :hover, but the same thing wont happen to .first, I guess because it's before .central, how do I make this work? ```html <div class="flex"> <button class="first">ciao</button> <button class="center">aaaaaaa</button>...

compiled .css files not pushed in repo

Hello everyone, I was adviced to not push my dist folder with .css files , infact I added the folder in a .gitignore but css style from my webpage is not showing now. Can anyone advice me what to do because I think I got that wrong … Ps. I created another folder with the main.css file and a script in a json that allows me to copy the changes from dist/main.css to css/main.css...