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

Need help replicating an animation

Hi all, I'm trying to replicate/make an animation similar to what You see in the image which is a sort of..., circuit board animation(?), I don't really know the proper name for it nor can I find any tutorials, anyway, the animation starts off with just the square/rectangle and then lines/traces (Whatever You wanna call them, lol) branch outwards from the center. Now, I want to try and replicate exactly this (The colors don't matter for now btw, I can do those later) but make it so that it branches out on 4 all sides and also make it so that the lines don't overlap each other / go on top of one another when randomly generated. So far I've only been able to find the odd one or two Codepen.io example which has that line/trace effect like this one in particular: https://codepen.io/loktar00/pen/rNMKZq but, it doesn't start from the center, sadly; the lines/traces start at random positions based on the (entered) values for startTraces and totalTraces in the top right part of the screen....

Trying to get a layout based on a wireframe but not sure if the HTML and CSS is right

My issue is trying to achieve the attached layout below but I dont think my setup is correct. I'm using pico css to help with some designs im not good at and trying to get it to where the tabs for hourly, monthly, daily are accordions that will eventually generate the weather from the backend. I'm also giving the user the option to change units for temp. There is a sidebar where their favorites are stored. Please let me know what I did wrong here. here is my pen https://codepen.io/MD-2016/pen/Po...

Hello everyone im trying to add the real G of google but i can't realy find it

i cant create a letter G of google same as it is ( or would u suggest me to download the image)

formik and yup issue

guys i have a question, i am on a page, to collect passengers data, there's a form with the following inputs title, first name, last name, date of birth, mobile and email, the first passenger is the lead passenger, email and number is required for them, for others there's a checkbook to mark the passenger as co ordinator to be contacted for any further enquiries,...

CSS intersection observer?

My, how things have changed over the years. Im trying to remember if there was a CSS native way of doing what intersection observer does? Without any complexity. Merely detect when an element scrolls into position. The closest I could find is scroll snap but not sure........

bro is there any normalize css or a starting point of css for index.html in react ?

i stylized my componnet but deleted my index.html files is there any sane defaults for index.html in react pls

Very weird bug

Go to https://events.weka-fachmedien.de/medical-design-solution-day/partner (I'm using chrome) Scroll down to the "HY-LINE" logo and hover it. Look at the sticky header. It jumps for some milliseconds (I think the transition time). If it doesn't: scroll some pixels up / down. It doesn't happen always - but in like 1 out of 5 times / scroll positions. ...

RESPONSIVE PRODUCT DESCRIPTION PAGE

HELLO! I am creating a responsive e-commerce website, but unfortunately I am having some problems in creating it properly I tried to change the width, but no result, then I tried to change the font size in the description but failed. If anyone knows how to fix it, Please help!! After 800px I am unable to change the size https://codepen.io/Hamza-Nawaz-the-solid/pen/mdQRQqRthe...

not showing on android device

I put video background on my website. It’s showing on IOS Device but not showing on Android Device, any solution ? Here is the link to my website: https://sangzhii.github.io/Assignment/...

Landing page with height 100vh for Hero section causing trouble on larger screen sizes.

So I have a div for hero section to which I have given 100vh which looks decent on normal screen sizes but on large monitors it has extra white space which is a problem. what would be the best way to solve it ? giving it a max-height perhaps ?

JavaScript cleanup

Is there a way I can clean this up? I repeat myself quite a bit here. ```js const quotesList: HTMLElement | null = document.querySelector("section#quotes ul");...

Path clip doesn't work

https://jsfiddle.net/4dp0ozfs/2/ I got an SVG I liked and tried to use clip-path property with background image, but it seems like it doesn't work? What I'm doing wrong?...

When on the remote server, my js file cannot access the svg image. But on my local host it's ok

I've a js file in my js folder. I've a SVG image in my image folder. I'm trying to acces my image when the page loads (document.addEventListener('domContentLoaded', (e) => {})) through this js file but it can't reach the image. The strange thing is that on Live Server it works, while on Github pages it doesn't work, while offline it doesn't work either... I don't understand. The path is perfect, but depending on where the upload takes place (live server, offline or GitHub pages) it bugs and the image is not displayed!...

Horizontal SVG alignment

I'm trying to align this svg alongside my nav bar, but can't figure out why the svg that's wrapped around an html button isn't being centered, so far what i've done is use the dev tools to try to see if my container wasn't aligned to the center and it is, next I tried setting the button's display to flex, and used the align-content and the justify-content properties and it didn't work either. https://codepen.io/emberavenge/pen/BaGKVqP...

Vertically Align Text

Hello! I'm trying to vertically align an H1's content. I have tried vertical-align: middle;. A work-around was to display:flex then align-items:center. What's another way to do this without flex? ```...

how to render diff elements at once in vanila js

i have this api data what i want to have 7 diff p tags and every p tags should have maxtemp_c value how to achive this

UI implementation

I need any ideas on how I can implement the content on the picture attached

rerender is adding fetch results again and again.

issue occurs at setWatchListData. im trying to insert unique objects by comparing the ids. whenever it renders it adds same object inside an array ``js const fetchWatchList = (list) => { fetch(https://api.themoviedb.org/3/movie/${list[0]}?external_source=imdb_id&api_key=${API_KEY}`) .then(response => response.json())...

Vertically stacked sticky headers

I am trying to replicate Twitter's layout. I have a header menu bar, a side navbar that translates from the left when you click the header menu bar, and a set of tabs [For You, Following]. I want to sticky position all of the above elements to the top such that, as the user scrolls down the page, the elements will remain in their same position....

decision. how would you do it?

so i am remaiking my code for this site, how would you make the line to the left? at first i simply did the line on the first section and made the height of the line more than it's parent, that made in to some annoying problems when i changed the height of other things. another option i thought of was just making the line on one section and copying it to the other ones. there would be some exact copies of code but it would change height to it's parent. would you do it in some other way or does one of these sound better...