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

How exactly can we replicate the animation in this video?

I have a few options to create animations using Intersection Observer and ScrollMagic. Can anyone help me determine which approach is the best and most optimized for achieving these animations i have the assets with me the scroll animation itself I'm confused. I appreciate any help you can provide.

Classlist toggle

hey guys, can anyone help me out on making this button toogle my nav list, and explain how it works, thanks https://codepen.io/Adhurim-Gashi/pen/NWZLRaO...

Jagged Edges on CSS Translated + Rotated Button

Background Hi everyone, not sure how to fix this with CSS but it seems translated and rotated buttons still have a "jagged" edge which means there isnt any or enough anti-aliasing done. Using edge/chromium (technically webview2 on windows) ...
No description

Headings: Is “Preparation time” a `<h2>`?

I don't know. Judging just by the plain text, it could be, but the way it's presented makes me think it's not intended as such. I wish I could ask the author/designer what they had in mind. Maybe there's no right answer here(?) If a 'heading' is just a title/short-description for the content that is grouped with, then yes, but according to my understanding, headings should be reserved for major sections of the content that would make sense to include in a table of contents, not just any thematic group; although what someone would consider “major” enough to be included in a table of contents is somewhat subjective. If it's not a heading, then I think It would make sense to mark it as a <figcaption> wrap in a <figure>. Communicating “preparation time” is a description for this piece of content, without specifying that it should be in a table of contents....
No description

Change the order of <Form> elements

I'm working with a wordpress site, and don't have much control over the elements in a form, except, I can wrap an element or group of elements in a div, and can set the classes and id's of the elements. Some of the input elements are grouped inline, and some block. I want to move an element from it's rendered position to be coming between other elements later in the form....

SVG border Issue

I have the SVG apply button used inside all the tabs, but on 1st tab the SVG apply button is working fine, on other tabs SVG apply btn border is changing, anyone know what could be the issue? here is the code pen demo - https://codepen.io/aldrinbright/pen/gONjBBY...
No description

how to style for long text

Hi guys, how can I style for this text drop to a new line or truncate the text? because i'm creating an email template so a lot of properties is not suopported. ```css // this does not work .truncate{ white-space: nowrap;...
No description

Don't expand auto-sized grid column?

I'm trying to get a behavior where hovering over an item adds a button inside (in reality it's a table cell, placed inside a CSS Grid for the whole table), without causing the cell to expand, but rather have the inner text truncate to accommodate the newly added button. All of this, without setting a hardcoded width (or similar) on .two, of course - since that defeats the purpose. This is my current state of things - when hovering/tabbing into button.two, the .badge should not increase .two's size in the grid, but rather have "Two Hundred" (.text.truncate) to truncate:...

Is there a way to make the text wrap around the picture in this grid layout?

Hi, I got inspired by Kevin to try to use grid more! I was wondering if it was possible to wrap the text around the picture in this grid setup (as float is not respected on a grid item)
No description

Is there a vite-plugin for compiling -webkit rules in sass?

So I'm trying to solve an issue where I'm using "backdrop-filter" in my sass which works fine in Chrome but doesn't work in Safari. So if I do it the old-school way and add -webkit-backdrop-filter below it works fine. So I'm wondering if there's a watch/build plugin for vite that automatically adds those webkit prefixes so I don't have to add them in my sass?

Fancy Drop Down Menu

I have this rough draft of a dropdown i been trying to make. As you can see theres a number of columns. I try to keep the top divs of the column of a ratio of 10/6 And whatever the height is of that box, i want the dropdown element's max height to be that....
No description

I want to know how hero image works

i want to know when we use background image in hero section and mark its width and height how can i zoom it in when open in mobile just any other website do

How to set max-width to tbody or tr

Hi guys. I want to set max width to a row of a row but it does not work. Can you help me? ```html .wrapper { width: 100%; table-layout: fixed;...

Similarity of inline-block and text?

Is inline block similar to text? Ik thats odd but i find it odd'er that we can use css proerties of line-height and line-width? Pretty wild so far 😄...
No description

text-decoration and pointer-events of anchor pseudo-elements

I have a big confusion regarding this topic. With the attached html, I am getting what's in the attached screenshot: - Why is it showing an underline as text-decoration for the ::after, but not the ::before - Why is the underline on the ::after not gone, even though I've set it to text-decoration: none - Why is pointer-events: none ignored?...
No description

Looking for collaborator

I am looking for European who can help me. I will pay for that and it will be long term collaboration. If you are interested in that, please DM me. Thanks...

White space

Hi! This is my first website and I have no idea why there is white space on the right. I tried to give HTML a 100% width, i tried overflow-x hidden and I even tried wacky stuff like negative margin right values but nothing works. My code is really long because of media queries, but I hope you'll be able to help '''@media (max-width: 420px) { .button-86{ transform: translate(50vw,97vw); ...

Best way to control keyboard navigability within an element (scope to parent)

I'm trying to find the best way to guide users through some of these modals we have in the UI (example pictured) I've tried several things. • Tabindex was my first thought but its a nightmare. All default elements throughout the entire application are tabindex 0 or -1 if we don't want them to be focusable, but Giving this CTA button atab index of 1 and the cancel button a tab index of 2 is no good. The tabindex 0s in the page BEHIND the modal take precedence over anything with a positive integer attribute value so I would have to explicitly give EVERYTHING in the modal form a tab index of 1...
No description

React useRef() is being useless. Can't prevent re-fetching on form clear

I have a vehicle update form component with a 'clear form' button. The button resets the useState form object field values to nothing again, and due to this state change, React of course is re-rendering the entire component, which is fine for seeing blank form fields again, however this re-render is also causing fetch api's (my fetchInventory and fetchSteps) to also be re-run, which is unnecessary since the data from the fetch api's is already saved (from the component's first mounting/rendering). To avoid re-running these fetch calls upon re-render, I set some useRef variables - stepsFetched & dataFetched - to be false initially, but then set to 'true' after the first running of each fetch call (once I have the data), and then additionally, I am testing their truthness/falseness inside of the fetch function, prior to the call, to know whether to actually make the fetch call:...