Latest solutions
NextJS, TailwindCSS, Framer Motion
#motion#next#tailwind-css#typescript#accessibilitySubmitted over 2 years ago
Latest comments
- @minibrusp#react#react-router#tailwind-css#vite#motion@diversis
Hello! Looks fine except for some overflow issues and layout shift. To remove overflow on main section change you can simply add css
main {overflow-x:hidden}
. Addressing layout shift : better render only content that changes (like text,images and their direct<div>
|<motion.div>
parents), but layout itself should remain unchanged. This may require wrapping each piece of content you want to animated in one more<div>
Marked as helpful - @AbibGuardian50@diversis
Hello! To change image color inside
<img>
you may use something like.social-icon:hover {filter: hue-rotate(330deg) saturate(10)}
. But there is a better approach forsvg
images.If you add whole.svg
contains to.html
you can than apply styles to<svg>
object.Also you can place all icons used on a page into<defs>
and than place them with<use>
inside<svg>
. More info on <defs>Marked as helpful - @3eze3@diversis
Hello! Page looks fine overall. Noticed issue with hero section text (you called it build section) and "Try it free" button: they have light text on light background. Also footer text is same color as selection.
- @Phenics13
Interactive rating component using React and Styled Components
#react#styled-components#typescript#motion@diversisHello! Took a quick glance.
- Interative objects need pointer:
button {cursor: pointer;}
- Wrap container (
<Card>
) in this example is supposed to have fixed dimensions - Consider using flex or grid container for
<form>
: you can setupgap
,column-gap
androw-gap
for whole block instead of multiplemargin
's and positioning children is much easier than withdisplay:block
Marked as helpful - Interative objects need pointer: