This is an example of a star rating form, designed using HTML, CSS, and Bootstrap framework 4. The star-shaped radio icons are imported to the form with its URLs. The body of the form is given the styles of background as #F4F2F3, text-align as center, display as flex, flex-direction as column, and justify-content as center. The title of the form is given the styles of font-family as 'Fjalla One', sans-serif, and margin-bottom as 0.15rem, whereas the subtitle is given a style set of font-family as 'Cutive Mono', 'Courier New', font-size as 1rem, letter-spacing as 1px, and margin-bottom as 4rem. The cursor style for the radio buttons is set as pointer to get the hand cursor effect on a hover event. The stars are given the styles of color as transparent, and transition as color 0.2s ease-in-out to make them transparent. When checked, the radio button stars get filled with the color #d62a9d. Source: https://codepen.io/meowwwls/pen/BzaWZg
This is an example of a simple star rating form, designed using HTML, CSS, and Bootstrap framework 4. The icons are imported to the code with their URLs. The form is given the styles of display as flex, flex-wrap as wrap, height as 100vh, align-items as center, justify-content as center, and padding as 0 20px. The rating label has the styles of cursor as pointer to get the hand cursor effect on a hover event, width and height as 40px, background-size as 76%, and margin-top as auto. The feedback container is given the styles of max-width as 360px, background-color as #fff, width as 100%, padding as 30px, border-radius as 8px, display as flex, flex-direction as column, flex-wrap as wrap, align-items as center, and box-shadow as 0 4px 30px rgba(0,0,0,.05). The container consists of five feedback stars with five emoji’s to appear according to the rating given, which is implemented by the transform styles on the rating labels. Rating 1 has the transform style of translateY(-100px), rating 2 has the transform style of translateY(-200px), rating 3 is given a transform style of translateY(-300px), rating 4 has translateY(-400px), and rating 5 is given the transform style of translateY(-500px). Source: https://codepen.io/knyttneve/pen/EBNqPN
This is an example of a rating slider with smiley animations, designed using HTML, CSS, JavaScript and Bootstrap framework 4. The icons are imported to the code with their URLs. The concept of Lists has been used with UL and LI components. UL element has been used with the child elements of LI to display the icons in an orderly manner. The slider is given five types of reactions which are awful, bad, okay, good, and grat. JavaScript functions have been used to implement the reaction animations on smileys by giving different styles to a different section of smileys such as mouth and eyes. The body of the form is given a style set of min-height as 100vh, display as flex, font-family as 'Inter UI', 'Inter', Arial, justify-content as center, align-items as center, and background as #ECEFFC. The text is given the styles of font-weight as 500, and font-size as 18px. The colors are predefined and assigned according to the reaction smileys. Source: https://codepen.io/aaroniker/pen/oNgPXav