File tree Expand file tree Collapse file tree 1 file changed +94
-0
lines changed
Source-Code/FormWaveAnimation Expand file tree Collapse file tree 1 file changed +94
-0
lines changed Original file line number Diff line number Diff line change 1+
2+ * {
3+ box-sizing : border-box;
4+ }
5+
6+ body {
7+ background-color : brown;
8+ font-family : Georgia, 'Times New Roman' , Times, serif;
9+ margin : 0 ;
10+ overflow : hidden;
11+ height : 100vh ;
12+ padding : 20px ;
13+ display : flex;
14+ justify-content : center;
15+ align-items : center;
16+ }
17+
18+ h1 {
19+ color : aliceblue;
20+ text-align : center;
21+ }
22+
23+ label ,
24+ p {
25+ color : aliceblue;
26+ }
27+
28+ .btn {
29+ background-color : red;
30+ padding : 15px ;
31+ width : 80% ;
32+ color : # fff ;
33+ border : 1px # fff ;
34+ border-radius : 7px ;
35+ font-size : 16px ;
36+ }
37+
38+ .btn : hover {
39+ background-color : rgb (197 , 9 , 9 );
40+ }
41+
42+ a {
43+ text-decoration : none;
44+ color : # fff ;
45+ }
46+
47+ .container {
48+ background-color : black;
49+ padding : 20px 40px ;
50+ border-radius : 3% ;
51+ display : flex;
52+ flex-direction : column;
53+ }
54+
55+ .form-control {
56+ position : relative;
57+ margin : 20px ;
58+ width : 80% ;
59+ }
60+
61+ .form-control input {
62+ background-color : transparent;
63+ border : 0 ;
64+ border-bottom : 2px # fff solid;
65+ display : block;
66+ width : 100% ;
67+ font-size : 18px ;
68+ color : # fff ;
69+ }
70+
71+ .form-control input : focus ,
72+ .form-control input : valid {
73+ outline : 0 ;
74+ border-bottom-color : # fff ;
75+ }
76+
77+ .form-control label {
78+ position : absolute;
79+ top : 15px ;
80+ left : 0 ;
81+ }
82+
83+ .form-control label span {
84+ display : inline-block;
85+ font-size : 18px ;
86+ min-width : 5px ;
87+ transition : 0.3s cubic-bezier (0.645 , 0.045 , 0.355 , 1 );
88+ }
89+
90+ .form-control input : focus + label span ,
91+ .form-control input : valid + label span {
92+ color : # fff ;
93+ transform : translateY (-20px );
94+ }
You can’t perform that action at this time.
0 commit comments