vattevaii
KPCKevin Powell - Community
•Created by Londonpeteharrison on 4/7/2024 in #front-end
Your thought process
Using grid area is a really neat approach.. you won't have to worry about span on each element and it's easier to make it responsive too
Image1 content1 content2
Image1 image2 image2
Content3 content3 content3
4 replies
KPCKevin Powell - Community
•Created by x_enzo. on 4/7/2024 in #front-end
How can I bind mouse wheel to the scroll-bar in a overflow-x scroll?
Listen to scroll event on the div.. prevent it from bubbling to outer el.. then use delta from event to change the offset value of the div..
I don't have my code on me rn .. check to see if it's valid
2 replies
KPCKevin Powell - Community
•Created by Dovah on 1/27/2023 in #front-end
Are hardcoded dimensions a must for CSS animations and animations in general?
When any filter is selected the width of content is decreasing, you really should look into that. And I suggest keeping the space for filters even if there is no filter. Since the filter div is only shown when filter is selected, the site glitches when selecting filter
8 replies
KPCKevin Powell - Community
•Created by vattevaii on 1/27/2023 in #front-end
Type declarations for a JS library
I tried setting up type declarations inside the package in node modules.. it failed.. 😩.. I shall look into how the @TYpes works. I'm doing this for a small package so I hope not much work..
4 replies
KPCKevin Powell - Community
•Created by Dovah on 1/27/2023 in #front-end
Are hardcoded dimensions a must for CSS animations and animations in general?
For the height I would animate max-height property while keeping height:100%. Set max-height equal to 0 for hiding the element and largest height the element can go up to when showing(in mobile view, height is larger than in pc)
8 replies