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

Responsive navbar question - Kevin's video

Hi all, in video below Kevin explains how to create a custom mobile menu which will open and close when user clicks the nav-bar button: https://www.youtube.com/watch?v=HbBMp6yUXO0&t=2081s I have copied the code and all is working great except 1 thing - on page load if I resize the browser, the mobile menu will "flash up" as it's transitioning itself on mobile breakpoint, due to this CSS within the .primary-navigation : ...

Getting Chart.js to work in a Vue js project

I'm trying to use Chart.js in Vue project but nothing seems to happen when I follow the documentation exactly as displayed on their website. https://www.chartjs.org/docs/latest/ https://vue-chartjs.org/ ...

Best animation Library with Vanilla JS

Hey guys so I'm building my site with vanilla JS and was introduced to different animation libraries like motion one and GSAP was wondering which is a better choice for basic animations on scroll and can animations differ depending on screen size? Like on mobile can I have different animations than desktop?

Is there a way to force iOS to display a vertical scrollbar on a desired element?

I've been tearing my hair out trying to figure out why my scrollbars are disappearing, and it turns out it's an iOS thing (possible Mac too?). The browser is automatically hiding the scrollbars, and they're only showing when I hover the element, which reeeeeeally isn't acceptable as the user needs it conveyed to them that the element is scrollable by sheer virtue of the affordance a scrollbar gives. This also happens on a desktop browser when viewing the page in devtools as an iOS device....

Mixing overflow-y and overflow-x

Hey team, I have a certain problem with forms and overflows Imagine having the following structure...
No description

White place

https://peppy-kitsune-0f72e6.netlify.app/ My CSS is having a problem with the white place, it is also on the mobile screen. Although I follow Mobile-first, I don't know why it looks like that, Could anyone know the reason why and the solution for that, please support me, I really appreciate it 🙏...
No description

Media Query, trying to turn text into icon.

Hey guys I am going thorugh a web development bootcamp and I am not getting any help from my mentor. I am trying to turn the "Search" text from the search bar into a magnifying glass when the width of the screen is 767 or less. This is the last hurdle I have to get over and the website is done any ideas, links anything would be very appreciated....
No description

CLAMP VS MEDIA QUERIES - mobile friendly

i don't need to use media queries if i use font size clamp right? im trying to make the website responsive on mobile...
No description

How to make a button inside an input

I'm trying to make this input with a search button inside, but I'm not succeeding. How do I do this style?
No description

Rotating Tab links in mobile

I'm trying to achieve this tabs layout. I've attached the desktop version and the mobile version I'm trying to get. Desktop is fine but facing problem while implementing the mobile version. I've rotated the product-tab-menu-link in mobile but it's not filling the whole space available. ...
No description

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