This is an example of another signup form with a floating label, designed using HTML, CSS, and Bootstrap framework 4. The background image is imported to the code with its URL. The form consists of input fields, signup button or sign in with Google link. The body is given the styles of color as #000, height as 100%, and background-color as #D32F2F. The input fields are given the styles of background-color as #F3E5F5, padding as 8px 0px 8px 0px, width as 100%, box-sizing as border-box, border-bottom as 1px solid #F3E5F5, font-size as 18px, color as #000 and font-weight as 300. The input fields take the styles of border-bottom as 1px solid #D32F2F, and font-weight as 400, in a focus event. The signup button is given a background color of #BDBDBD, where it changes to #D32F2F, in a hover event. The input text label takes a transform style of translate3d(0, -100%, 0), to generate a floating label effect, in a focus event. Source: https://bbbootstrap.com/snippets/sign-up-form-floating-label-96054886
This is an example of a floating label layout, designed using HTML, CSS, JavaScript, and Bootstrap framework 4. The JavaScript functions have been used to implement the floating functionality of the labels. The body of the form is given the styles of min-height as 100vh, background as HSL(215,21%,24%), font-family as 'Roboto Condensed', sans-serif, and letter-spacing as 0.1em. The input label has the styles of display as block, height as 100%, width as 35%, padding-left and padding-right as 0.75em, background as HSL(320,69%,53%), color as white, line-height as 2.5rem, text-transform as uppercase to automatically convert the text to uppercase, and transition as transform 0.3s ease-in-out. The input field has the styles of height as 2.5rem, width as 100%, padding-left as 38%, color as HSL(215,21%,24%), border as 1px solid HSL(320,69%,53%), and transition as padding-left 0.3s ease. When an input field is checked, the border and the label color becomes HSL(90,44%,71%), and the font color becomes white. Source: https://codepen.io/meowwwls/pen/JGbwKw