layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

Enhance Sign In / Sign Up transition and align input field widths.

Open Neeraj-code-beep opened this issue 9 months ago • 5 comments

Current Behavior

On the authentication page, switching between Sign Up and Login uses a basic transition where the form content changes state. While functional, the transition feels abrupt and does not clearly convey direction or continuity during the switch. Additionally, the email input field has inconsistent sizing compared to the other input fields. On larger screens it appears wider, while on smaller screens it appears narrower, resulting in a visually imbalanced form layout.

Desired Behavior

Enhance the existing Sign Up / Login experience with minimal and non-invasive improvements:

  • Add a simple left-to-right / right-to-left fade transition when switching between Sign Up and Login.
  • The transition should only affect visibility and horizontal position, without changing the form structure, content, or validation logic.
  • Maintain the current layout while improving visual continuity during the toggle.
  • Fix the input field sizing so all input fields have consistent width across screen sizes.
  • Ensure the animation remains subtle and aligned with Sistent motion principles.
  • Respect prefers-reduced-motion by disabling the animation when reduced motion is enabled.

Screenshots / Mockups

Image Image

https://github.com/user-attachments/assets/1ec7a089-99fb-4909-911c-5b425edc79c6

Implementation

  • Apply a lightweight fade + horizontal translate animation when toggling between Sign Up and Login.
  • Reuse existing Sistent spacing, color, and layout tokens without introducing new design values.
  • Keep the animation duration short and unobtrusive (approximately 200–300ms).
  • Add a prefers-reduced-motion check to disable animation where appropriate.
  • Adjust input field styles to ensure consistent width alignment across all inputs at all responsive breakpoints.
  • Avoid any structural changes to the form beyond animation and sizing consistency.

Acceptance Tests

  • Switching between Sign Up and Login uses a smooth left-right fade transition without layout shifts.
  • The form structure and content remain unchanged.
  • All input fields maintain consistent width across screen sizes.
  • Reduced-motion preferences are respected.
  • No regressions in accessibility, keyboard navigation, or authentication functionality.

Contributor Resources and Handbook

The layer5.io website uses Gatsby, React, and GitHub Pages. Site content is found under the master branch.

Join the Layer5 Community by submitting your community member form.

Neeraj-code-beep avatar Feb 06 '26 09:02 Neeraj-code-beep

Hi maintainers 👋

I’d like to check if I can take this issue and work on it. My plan is to add a smooth left–right fade transition between the Sign In and Sign Up views (the type of transition I have in mind can be seen in the attached reference video). I won’t be changing the form structure or logic - only the transition animation. I’ll also fix the input field width inconsistency that was mentioned earlier. Please let me know if this approach sounds good to you, and I’ll proceed accordingly.

Thanks for your time and guidance!

Neeraj-code-beep avatar Feb 06 '26 09:02 Neeraj-code-beep

@kishore08-07 plz look into this issue too..

Neeraj-code-beep avatar Feb 07 '26 21:02 Neeraj-code-beep

Thanks @Neeraj-code-beep for noting. This issue belongs to the Layer5 (Meshery) Cloud repository, which is private, so I’ll be closing this issue. // @Rajesh-Nagarajan-11

kishore08-07 avatar Feb 09 '26 07:02 kishore08-07

@Neeraj-code-beep, please share the link to the page mentioned in the demo video.

Rajesh-Nagarajan-11 avatar Feb 09 '26 11:02 Rajesh-Nagarajan-11

@Rajesh-Nagarajan-11 okie just wait i never host that component that i made... , just give me some time a provide you the hosted link..

Neeraj-code-beep avatar Feb 09 '26 15:02 Neeraj-code-beep