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

Grainy and pixelated background images in Google Chrome: how to solve?

Hi all, i'm working on a Wordpress custom theme and I have this issue on Chrome. I'm using the thumbnail image as a background in various parts of the theme, set with background-size: cover and background-position: center, but they appear to be grainy or pixelated, as if they were low quality. I already tried the image-rendering property, but with no results. I also noticed that the issue exists when using Chrome, while on Firefox is working fine, and that occurs only when using the image as a b...

how to make a section with company logos accessible and semantic

Guys, what can I do to make this section semantic and accessible? Should I put the company logos inside a <ul> and make them have names accessible through the aria-label attribute and use tabindex="0", or should I hide the logos from screen readers and not let them with tabindex?
No description

How to animate text like this?

Hi guys. I am struggling to replicate this animation : https://www.veed.io/view/31810767-8caa-4f6b-8212-273bdd17dfbd?panel=share. i want a word to fade out just as in next word fades in. Any help i would be greatly thankful.

HELP with a button

hello guys, i would like to know who i do a button like this in html css!
No description

CSS ISSUE (Background position, repeat, size)

why is this, the background position, size, repeat is muted and not working, is there something wrong with my program? https://codepen.io/Cortezano/pen/GRPPBKP...
No description

Title/header issue

I'm trying to create a header like the one in the image. I achieved the 'desired' result for the 1440px but the problem with this is when page scales up it looks pretty ugly. I want it to be able to scale ++ add more words to the line and not just be stuck at 'created text'.. this is what I got so far. https://codepen.io/yesm4n/pen/vYvvjeG I tried different approaches but I can't seem to find a way besides 'hard-coding' the first part. ...
No description

How to implement this Ui?

When the first card is selected the first image is shown. Second and third card has different images related to them. But instead of clicking the cards or using a time to switch the active card I want it handled by scroll behaviour. When I reach this section, I want the vertical scroll to stop. Bascially scroll should change the active index. When I reach the last card after that vertical scroll should continue. Took my whole day and still I couldn't manage....
No description

how to fix this ?

When I use hover that time the whole elements is moving.. how can I fix react

Question on the shorthand of the column-count and column-width properties.

Guys, how does this shorthand of the 'column-count' and 'column-width' properties work? I'm trying to understand but in practice I don't see any difference. Example: columns: 3 120px; When I use these values, will I have 3 columns of 120px? How it works?
No description

How to make SVG appear on hover?

I want to make an SVG appear when hovering over that IMG along with the transparent background color as seen in the left image. How do I achieve that pls?
No description

image resize

How do I make an image resize and take the same height and width as my line? I'm trying to make the left IMG look like the right one...
No description

Twitter clone problem

Someone please help me fix my bug here!😩 I basically want the Column-3 to stop scrolling at the end of the footer links while the column-2 still scrolls just as it is on Twitter desktop view. I know this is achievable using JS but unfortunately for me, I haven’t learnt JS. So is there a way I can get this solution using css alone?? ...

How can I replicate this grid layout?

Is it possible to get this exact grid layout using tailwind css? I'm so close I can't seem to get the 2nd and 3rd div to work with me ``` const Grid = () => { return (...
No description

How do I maintain space between sibling elements when scaling them up on mouse enter / hover ?

This is the specific issue that I am having: "When a card is hovered on or marked as active, the scrolling animation stops, the card expands pushing the neighboring cards aside to maintain a consistent gap, and information is displayed over the cards background." I have all of that covered except: "maintain a consistent gap", I've tried both transform: scale() and scale: value and the expanding card doesn't push out the others. Pictures below in comments....

SEO in CRA

Hey, I am looking for someone who has implemented SEO features in a create-react-app application. I have tried using various packages which do that without much success. (Due to the lack of adequate documentation). I want to learn how to make variable meta tags for each page, decrease site load time using lazy loaded images (this I can do now), and create sitemaps. I have tried the library react-helmet. And found out it was depreceated. If anyone can share their knowledge on this, or point me to some resource, that would be great...

BG effect

Anyone know how to create something like these two effects on the BG
No description

Color Hexcode to RGB conversion

Is there any css only way to convert the hex value of a color code to RGB value so that I can use alpha value with it?

Slot content piling on top of other content?

I have been working on implementing an SCSS template in a SvelteKit project. My styles are coming through to the UI, however I am having trouble figuring out why some of the markdown is coming out piled up. I've tested and toggled so many things at this point, I'm not sure what to mention. If I remove all styling, the markdown paints to the browser the way you would expect: header, over main & slot content, over footer. My routing works fine, my route pages display their <h> tags, and while I've removed most styling at this point the root & body styles come through from the SCSS folder. My root layout looks like this: ```javascript <script>...
No description

why media queries is not working?

isn't the 'em' unit used in media query is relative to the root font size, which is 10px. Therefore, 50em should be 50 * 10px = 500px. but I am not getting expected result.
No description