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

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? ...

Can I use AOS library animation on my php file?

My animation on AOS is not working. Im thinking that the problem is I am already using a GSAP. Any recommendation how to implement AOS while using also a gsap?

the right way to do responsive

```html <div> <a href="#" class="text-decoration-none "> <div class="img-wrapper d-inline-block" id="img-1"> <img src="assets/img/Literature.png" alt="Literature">...
No description

Position form after an image

I find it impossible to locate the form which is for booking a train after the parallax image responsively. I hardcode the position of the form but when the page is resized it looks ugly. PS: The design of the form is not finished but I wanted to fix its location first and then finishing the design. HTML: https://pastebin.com/DuAUuuSE CSS: https://pastebin.com/iestPdYK Thanks in advance!...

Next.js + Tailwind: how to make images be uniform

I don't know how could I make them have the same height or aspect ratio. This is my whole component: ```tsx...
No description

API not fetching data on deployment

on my local host, everything works well, but after I deploy on vercel, the web app fails to fetch data from the API as required. what could be the problem, please? ```function init() { randomBtnWord(); fetch("https://animechan.xyz/api/random")...

How to make this ?

I saw this crazy thing on LinkedIn. I am wondering how this is done. can explain this to me?

Sass, scss, less, and why/when/which/where to use them?

After developing a little project that is still ongoing, I have learnt a lot about html and css, although still dabbling in JS. This being said, I heard people talk about sass and scss, but since I had a deadline I didn't stop too much to think about those. Now that I'm looking more into them, they seem quite interesting and like a potentially good resource to use. Looking online, however, I've seen mixed opinions. A lot of people recommend them for everyone, others for big projects, and some just prefer to stick to plain CSS. And trying to look up what the difference is, I've only found sorta vague info like "sass and scss are the same but sass uses indents while scss uses {}, etc", and I am frankly a little confused. Sorry if the following is a lot of questions, but I am just very curious for input from people who work with these: - How worth it is it to use these as a personal developer? - Which one is recommendable over the other ones, in your opinion, and for what reason? Or perhaps there's no considerable difference? - If one wants to stick with base CSS, is it a sort of voluntary hinderance?...

making a image responsive in a flexbox

I think I am going to pull my hair out. I have such a hard time making images respond how you want them to. Anyone know any good help videos or articles? here is my issue that I have. ```<section class="hero"> <div class="container row"> <div class="hero_info"> <h1 class="hero_title">I Really Need A Coffee</h1>...
No description

CSS button

Can we create this button with bubble around and inside spacing after border with css only ?
No description

Phone overlap on a container

I have a figma design which is in the cover, and I want it to code using html and css, the problem is, I cant execute it properly using position absolute, I can position it in my desire look but I cant make it stay on that position, and second its not responsive. Sorry in adv Im using variables on other css properties. Any one can help me figure out how to execute this properly? ...
No description

Fade In Fade Out

I am wanting to do a fade in on scroll, then fade out on scroll. I have followed Kevins tutorial on this, but its not working. Is there another tutorial that I can add to my website, that I can use to make things fade in and out on scroll? I saw the one Kevin did 4yrs ago, but that one does not really help considering that he is using grid-column, which I am not using....

String to markdown

Problem: I have a paragraph string that is having multiple points I.e. ordered list and normal paragraphs before or after ordered list. It is not formatted. Is there way or any library I can use to easily identify paragraphs and lists and format it....

Looking for the effective way to use flexbox

Would like to know the best practice when using flexbox. I am attaching my code snippet and screenshot. If anyone have a better way, plz help me. ``` <div class="d-flex justify-content-between mt-6 mb-4 mb-sm-8">...
No description

Does anyone knows what this style called?

I've seen a lot of web designs recently with a similar looks as the attached file. dark mode with glassy feeling and purple lights around. Thanks in advance!...
No description