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

loop vedio

hi every one why loop vedio attribute cause high cpu usage how to resolve it

Browser zoom/Screen resolution

This might be a silly question but does your browser zoom level have to be at 100% when you develop a website? I always have it at 125% because it makes websites look normal(like how 100% should look) on my laptop, so would that be a problem? or is there a work around to this? it is very frustrating at times...

how to go about animating a wave that I can manipulate like a cubic bezier

So you have waves that move horizontally but I want to control the trough and the crest like points to make the wave to fancy stuff.
something like changing the edge of a div to a cubic bezier, where I can freely manipulate the points for the cubic bezier would also work. What is the best way to do it, or if there is a tutorial on the web for it that would be great. I couldnt find anything....

Taking in a person's browser zoom into account

On my laptop i use 125% browser zoom because it looks better based on my laptop screen/aspect ratio idk but my friend uses 100% just fine and i realize his 100% and my 100% are different. so we are working on a project together and his changes look good for him but when i load them on my 125% zoom it looks a little wack. ...

npm run compile:sass isn't working. My Node.js version is (v18.17.0). Is the version not compatible

Here is the error file when I try to npm run the script:
[email protected] compile:sass node-sass sass/main.scss css/style.css
...

How to make cut corners borders with a transparent background ?

I followed this great codepen to make cut corners, but is there a way to make the background of the button transparent without destroying the border ? https://codepen.io/kevinpowell/pen/bGLmORx...

Help creating a generic overlapping grid rule.

I'm new to css and want to know if there are any clear problems with the attached approach. Ideally I should be able to use this for any two items. The result should be two stacked items on the z-axis, with the second item being on top. ...
No description

Confusion with SCSS

in the video that i added, u can see i have made a utilities folder for styling purpose where i have 2 files reset.scc which is for css reset and variables.scss which is fro global variable now they r imported in my App.scss i didn't install any scss pkg using npm, only a live scss compiler, beforehand when i made App.scss and started the live compiler it made 2 files App.css and App.map.css and my compiled code gets imported in App.css ...

help with react

hey there i want to build a front end project that allows users to copy text from pdf and images, how can i do it and how to to approach it

html2canvas to capture dom element

I am trying to create a "screenshot" of the html element with html2canvas, but some elements are moved out of their place. Would you happen to know why? Also, if you have better options to handle that, please share....
No description

Why Data type doesnΒ΄t work ?

I have these 3 cards and only think that changes is the background and i try use de data type but doesnt work, any tip?
No description

animate image transition

i have image 1 and i have other image 2 i want to make animation of image1 to image2 with animation for exaple when add select product i want to move img product to image of shopcart...

scrolling issue

at a point when i was coding i couldnt scroll with the mouse wheel https://codepen.io/web_dev_pr0/pen/JjxZMKz...

How to remove animation after it finishes

i made a div called loader and inside that div i have an svg where i did animations on in the css. how do i make it that when those svg animation end it remove that loader div since that will be blocking my main content....

Question about section and container divs

Hello, I have a question. i have seen some people put container div inside of a section, and add css like this: section{ padding-block: 5rem 10rem; }...

Testimonial Slider Structure Understanding

So we have the Outer layer (GREEN), in which we set it to fixed sizes when in mobile size and desktop size, then we have the actual slider (RED), in which we set it to fixed size for both desktop and mobile, this one is the one that we slide left right? and then we have the cards (PURPLE), do I understand the building blocks of the testimonial slider right? Or any slider in general, is this how they build sliders?
No description

feedback

please i need feedback on this https://codepen.io/vert-wilson/pen/jOdKyvV what i could have done better

selectable transparent text with readable background and aria-hidden="true"

Aloha! I have been drafting a new website theme. For the logo, I've set the element background to the designed graphical logo, and then the element content matches the logo-text with color: transparent; set in the css. With this set up, text in the logo appears to be selectable and is screen-reader-readable. Likewise the element content is legible despite being transparent, as a result of its SVG background, the logo... Obviously when I test the page for accessible text contrast (with a browser extension), it fails because this text is not visible... ...
No description

Overflow:scroll while keeping a specific child element visible outside?

Hi all. Usually I can strumble around and find a solution, but I'm stuck here. I have a vertically scrollable container that contains a bunch of clickable cards. I have added a --zoom property so that the cards can grow on hover. However, when hovering over the top row of cards, the top of it gets clipped (as expected). Ideally I'd like to keep the scroll behaviour, while keeping all of the hovered over card visible on the top. Pulling it out of the flow is a hassle to get looking right, and it breaks being able to scroll while hovering over it. Is there any way to achieve what I'm after? This is me modifying an existing app, so I really want to keep it CSS only if at all possible....
No description

Table Border and Padding Issue

When I apply border-collapse: collapse ; to table, padding stops working, and when remove border-collapse: collapse; padding started working but then border stops working in the table. I want to apply bottom border to my table row, and also apply padding to my table. how to do it? ...