zobweyt
Explore posts from serversKPCKevin Powell - Community
•Created by zobweyt on 11/30/2024 in #front-end
How to increase the duration of pseudo classes in CSS?
Thank you for the help!
16 replies
KPCKevin Powell - Community
•Created by zobweyt on 11/30/2024 in #front-end
How to increase the duration of pseudo classes in CSS?
Oh, sorry, didn't see the message. I think I'll stick with this one for now:
16 replies
KPCKevin Powell - Community
•Created by zobweyt on 11/30/2024 in #front-end
How to increase the duration of pseudo classes in CSS?
This one is actually made with some javascript, but I'm looking if it's possible with CSS only
16 replies
KPCKevin Powell - Community
•Created by zobweyt on 11/30/2024 in #front-end
How to increase the duration of pseudo classes in CSS?
16 replies
KPCKevin Powell - Community
•Created by zobweyt on 11/30/2024 in #front-end
How to increase the duration of pseudo classes in CSS?
This one also has a delay on hover, and the one with
:focus
works weird16 replies
KPCKevin Powell - Community
•Created by zobweyt on 11/30/2024 in #front-end
How to increase the duration of pseudo classes in CSS?
I'm trying to achieve similar behavior. As you can see, the active effect doesn't disappear immediately after click, there is a delay before changing from active color to idle color
16 replies
KPCKevin Powell - Community
•Created by zobweyt on 11/30/2024 in #front-end
How to increase the duration of pseudo classes in CSS?
Yeah, sorry, maybe I was unclear
button
- some background color
- transition duration 300ms, transition delay 0ms
button:hover
- change background color to a darker one
- transition duration 300ms, transition delay 0ms
button:active
- change the background color to an even darker one
- transition duration 0ms
- before coming back to the idle state it should have a delay of 300ms (i.e. when you release the mouse button it should wait 300ms before changing from #1122bd to #3446eb), so the active effect doesn't disappear immediately after click
Take this code snippet:
This one is missing here:
- before coming back to the idle state it should have a delay of 300ms (i.e. when you release the mouse button it should wait 300ms before changing from #1122bd to #3446eb), so the active effect doesn't disappear immediately after clickHow do I add this effect?
16 replies
KPCKevin Powell - Community
•Created by zobweyt on 11/30/2024 in #front-end
How to increase the duration of pseudo classes in CSS?
I want the active state to last longer. My code works well with just two states. If I'd add hover state, it will delay there too
16 replies
KPCKevin Powell - Community
•Created by zobweyt on 10/11/2024 in #front-end
Choosing between dependencies and dev dependencies
ohhh, thank you very much!! I got it all now :)
45 replies
KPCKevin Powell - Community
•Created by zobweyt on 10/11/2024 in #front-end
Choosing between dependencies and dev dependencies
maybe I don't understand very well why start script is needed? is it needed only for testing and preview? after moving the build to the hosting service, do I need to run the application using just node and the resulting build?
45 replies
KPCKevin Powell - Community
•Created by zobweyt on 10/11/2024 in #front-end
Choosing between dependencies and dev dependencies
okay, got it
however, this still remains unclear for me:
I still need Vite to run the start script, so should it remain in the regular dependencies?
45 replies
KPCKevin Powell - Community
•Created by zobweyt on 10/11/2024 in #front-end
Choosing between dependencies and dev dependencies
they are using
vinxi
, it's vite
+ nitro
45 replies
KPCKevin Powell - Community
•Created by zobweyt on 10/11/2024 in #front-end
Choosing between dependencies and dev dependencies
yes but it's more like a "library", not an app
also, compare these examples:
- https://github.com/solidjs/solid-start/blob/main/examples/bare/package.json: everything is in regular dependencies
- https://github.com/solidjs/solid-start/blob/main/examples/with-vitest/package.json everything is in dev dependencies
45 replies
KPCKevin Powell - Community
•Created by zobweyt on 10/11/2024 in #front-end
Choosing between dependencies and dev dependencies
I'm using Vite with Solid Start https://github.com/solidjs/solid-start
45 replies
KPCKevin Powell - Community
•Created by zobweyt on 10/11/2024 in #front-end
Choosing between dependencies and dev dependencies
Should I move everything to development dependencies and then attempt to build the app with all the development dependencies installed, and then preview using the start script? I understand that the next steps may depend on the hosting environment. For example, in one scenario, would I move the build to a hosting service and only install production dependencies there? I still need Vite to run the start script, so should it remain in the regular dependencies?
45 replies
KPCKevin Powell - Community
•Created by zobweyt on 10/11/2024 in #front-end
Choosing between dependencies and dev dependencies
so you are doing a build with development dependencies installed
45 replies
KPCKevin Powell - Community
•Created by zobweyt on 10/11/2024 in #front-end
Choosing between dependencies and dev dependencies
but to build the app you anyway need some development dependencies
45 replies