Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Form_design_from_Netflix.pdf

 Form_design_from_Netflix.pdf

IMANISHI TOSHIFUMI

February 25, 2020
Tweet

More Decks by IMANISHI TOSHIFUMI

Other Decks in Technology

Transcript

  1. ϑϩʔτϥϕϧ͸$44Ͱ࣮૷Ͱ͖Δ <div class="p-floatlabel"> <input class="p-floatlabel_textfield" type=“text" required> <label class="p-floatlabel_placeholder">ϝʔϧΞυϨε·ͨ͸ܞଳి࿩൪߸</label> </div>

    HTML SCSS .p-floatlabel { position: relative; } .p-floatlabel_placeholder { position: absolute; top: 50%; pointer-events: none; .p-floatlabel_textfield:focus ~ &, .p-floatlabel_textfield:valid ~ & { top: 0; } } GPDVTٖࣅΫϥεͷ͋ͱͷҰൠܑఋ݁߹ࢠͰηϨΫλΛࢦఆ͢Δɻ ೖྗޙɺWBMJEٖࣅΫϥεͰελΠϧΛݻఆ͢Δɻ