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

SVG path

Can anyone explain how this path code works?

Why my Grid row is not shrinking?

When the viewport width is less than 1480px the Grid layout starts to shrink but the first row's height is not changing. Why is this happening? `` .card-wrapper { display: grid; grid-template-columns: repeat(4, 1fr);...

What might be the best way to create this?

I need to create this container and it should be responsive. When someone hover there should be a little movement in the pictures. Any suggestion how to create this thing. If you can even refer some resources that would be awesome.

Tag shape

How would you guys do this with CSS? Ignoring the color and font family....

Shift scroll from vertical to horizontal

I have multiple horizontal scrollbars of image galleries, one after the other. Is it possible to shift from a normal vertical scroll to horizontal if the page reached the gallery, once the horizontal scroll is completed vertical should start...

Automated styling testing?

Hi there, I was wondering what's the common practice when it comes to testing the style of your whole website. What I mean is, there are libraries like react-library-testing/cypress that can carry out multiple tests in order to check if something on a different part of the website was broken in the process, checks if a button no longer exists or doesn't open a popup, etc. Is it possible to do that with styles? I'm thinking maybe a Puppeteer script that takes screenshots of all the pages in your...

Gsap ScrollTrigger and a click event using scrollTop highlighting menu items

I've a menu where each item corresponds to a section div. Click on an item, it adds a border-bottom, and scrolls somewhere vaguely near the element (because life, and scroll-padding, just can't be that easy). Simple stuff. But then I've added ScrollTrigger to track which section I'm above when scrolling and change the active menu item accordingly. This unfortunately means that when you click a menu item, say item 4, it now scrolls to 4, but highlights menu items 1,2,3 and then 4 on the way there....

How to add content below centered div

The red part of the image is an element centered to the screen with flex, but I also want to add some content below that, without affecting its position. How can I do that?

Js error on click event.

Trying to make a passenger counter app and stuck on getting my save button functionality to work. I get this error "'saveNumber' is declared but its value is never read.ts(6133)" when I try to set a saveNum var on line 27. I'm not understanding what I'm doing wrong here? https://codepen.io/ezekielswanson/pen/MWBdZbP...

How to trace this vector for responsive layout.

I made a simple vector using subtract in figma. I want this to be responsive. How do i approach this....

Proper grid

I watched Kevins grid tutorial and I just want to try to figure out if im thinking about this right. https://i.imgur.com/lJAhMjN.png Would something like this work? and the green is a grid inside a grid, if that's something that works....

show message and disappear

How do I display a message for a few seconds and then disappear

Spacing between letters

Hello! How can I stretch out the last word .eighteen so it covers the width of the container? I tried letter-spacing but then the word is moving off from text-align, and space-between and display flex did not work either. The desired look is the bottom word "Beck" (the artists name in this design)....

need some fix in the search dropdown

hey folks this is my code https://mystb.in/TheologyWarnerFundamental for now as soon as I type something in the input box dropdown with locations appear so I want that when I click on the location or press enter the drop down close and location name is set in the input field...

SCSS Error: can not read files in public path

I have an assets folder that contain some other files with images and svgs in it in the public file of my project so... => navbar.scss ...I declared a variable with path below
$logo-path: "/assets/logos/black.svgā€;
$logo-path: "/assets/logos/black.svgā€;
Error: Module not found: Error: Can't resolve '../../../logos/mobile.jpg’...

CSS-only range

Is it possible to make a pure CSS range slider? I'm looking to have a range such that the track colors from the left and from the right sides of the thumb are different...

Turning rating (number) into rating stars

Hello, let's say I have some testimonials and each testimonial has it's rating, (e.g. 3.5, 4, 2.5 etc.). So what I'm trying to build is if the rating is 3.5 for example it should display 3 full stars, one half star, and one empty star. Just to give you a better example of what I'm trying to build, I have two testimonials, one has rating of 4, and other one has rating of 4.5, so this is how they should display: If you'd like to play with it: https://codesandbox.io/s/ratings-zhlnhx?file=/src/App.js...