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

Number Animation

For example , I have a stats of 5000 or 100000, i want to animate it as increasing animation from the zero gradually increasing and slow down at the end . I wanted to try this animation. I am not sure how to do calculation to speed up and down the animation. this is my codepen https://codepen.io/naveen570/pen/BaGEwQB?editors=1011...

Understanding Dynamic React components with cloneElement and React.Children

Hey guys, i am following a tutorial from Meta Front End course on coursera and trying to understand lab example they had on creating dynamic react components. What code basically does is creating radio group component and radio option component that can accepts childrens and props. Most of the code i understood, but what puzzles me right now is why we need to include repeating props of: ```...

Viewport height

As you can see in the image i have different sections . I want to show one section on my screen at a time on scroll then new section will come how can i do this for different screen sizes do have to the sizes of the elements according to the screen size .

Mat Table scrollbar Issue

Need help in fixing scrollbar , I want to have the mat table with complete width and scrollbar within the table . Here the table body width looks less because of scrollbar My HTML follows `<div class="table-group"> <mat-table></mat-table>...

Sticky scroll issue

I want to create a sticky header for accordion. But It's not working on desktop but working on small screen. Can someone help me with this. https://apar-test.hostx5.de/ I created a codepen there it's working fine https://codepen.io/AparAwasthi/pen/VwVgayY...

scroll snap + animation = error

im trying to use scroll-snap on my project. it work. but when i put animation when scrolling it gave a blank section

Applying a pseudo element to a Firefox Input

I am aware that Firefox correctly defines an input is not an element, however Chrome/Safari do. I have a input[type="range"] and trying to layer a background to the track. Works fine for Chrome/Safari - see image. So for Chrome/Safari I can use an ::After pseudo element. I have done a lot of searching and found an old hack that no longer works: ...

Internship as a Webdeveloper?

I had a interviwe for a intership at a company, and have some questions that I want to get help with. ```text 1. What kind of questions can I get ? ...

How to adjust last section in flex-column to shrink its content?

Hi, I couldn't answer on google and I am out of options. The problem basically is that I have page works as a presentations (I am using FullPageJs for this) and all content should adjust its height to fint into whole screen. I got one section when I have toolbar, categories and products as images. To achieve this I am using of course display: flex; with column. Is there any way that last section with images shrink according to space left and won't exceed 100vh?

Height Issue

I am working on web app, and the dashboard should only cover the full viewport of 100vh and 100vw. Preventing the horizontal and vertical scroll. HTML structure: `<div className="flex w-full max-h-screen overflow-hidden">...

JavaScript Tutorial

what's the best ever JavaScript Tutorial available on the internet start from the very scratch ??

Vite / scripts for running sass

Hi, after watching one of Kevin vid
https://www.youtube.com/watch?v=o4cECvhrBo8 I've decided I'll try approach to turn off all extensions and run npm to - autorefresh html - compile sass...

CSS struggles

https://codepen.io/brightDN/pen/dyQrBBN Isn't css fun? :( The .retile-button is not correctly put to the center (its the button at the bottom I changed my topbanner coloring a bit to see if it would be at 50% it isn't D: not even the start is ...

Need some advice to learn HTML - CSS development with the best practices.

Hi guys. I'm new to this community. Could you please suggest some example projects or web sites to learn HTML and CSS with only key points, not diving into whole concepts. I just wanted to use correct tags in the correct places and structure css files in a correct way. Beginner courses are so boring. I can't bear. What should I do?

Website problem

so basically in the first photo as u can see the hero section didn't fit at all while i'm using live server from vscode and as u can see at the project section all pics are shown. but at the second pic: it is opened from index.html without live server and as u can see the hero section is completely fit and the images don't show up. ...

White space on right side

Can anyone tell me why i am having white space on right side for small screen sizes possible reasons

How can I adjust the video to fit the height of parent div?

I'm working on fitting the background video to fit the parent div but it is not adjust to the height within the media query. Any ideas on how I can fix this? ``` .hero{ position: relative;...

(React) (Tailwind CSS) Icons Not Displaying

The title should be clear, they do not display.

Why I have closed tag for type?

https://youtu.be/Pbr7M4c9O3Q?list=TLPQMDQwODIwMjMkcGNCIeN9Qw&t=1286 I see that when he typing type and press '>' - vs code doesn't close tag for him Is any plugin for that? Usually instead of this:...

difference between display:inline flex; and display:inline-flex;?

Hi. i have always written display:inline flex; but i just realized that you can also write display:inline-flex; so i'm just wondering. Is there any difference between them? I know that it is used to create and inline flex container. I just don't know if there is any difference between them...