Skip to content

Commit 1331d5b

Browse files
middle the button
1 parent e84603f commit 1331d5b

File tree

2 files changed

+48
-7
lines changed

2 files changed

+48
-7
lines changed

ContactForm/contact.html

+5-6
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@
4242
<label for="">Write your message</label>
4343
</div>
4444
</div>
45-
<div class="form-row submit-btn">
46-
<div class="input-data">
47-
<div class="inner"></div>
48-
<input type="submit" value="submit">
49-
</div>
50-
</div>
45+
46+
47+
48+
<button class="custom-btn btn-8">Submit</button>
49+
5150
</form>
5251
</div>
5352
</body>

ContactForm/style.css

+43-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,49 @@ form .form-row .textarea{
125125
cursor: pointer;
126126
position: relative;
127127
z-index: 2;
128-
}
128+
129+
}
130+
.btn-8 {
131+
line-height: 40px;
132+
padding: 0;
133+
background: transparent;
134+
position: relative;
135+
z-index: 2;
136+
color: #fff;
137+
-webkit-perspective: 300px;
138+
perspective: 300px;
139+
-webkit-transform-style: preserve-3d;
140+
transform-style: preserve-3d;
141+
width: 40%;
142+
left:200px;
143+
144+
145+
}
146+
147+
.btn-8:hover{
148+
color: rgb(152, 127, 197);
149+
}
150+
.btn-8:after {
151+
position: absolute;
152+
content: "";
153+
top: 0;
154+
left: 0;
155+
width: 100%;
156+
height: 100%;
157+
background: rgb(107, 110, 240);
158+
z-index: -1;
159+
-webkit-transform-origin: center bottom;
160+
transform-origin: center bottom;
161+
-webkit-transform: rotateX(0);
162+
transform: rotateX(0);
163+
transition: all 0.3s ease;
164+
}
165+
.btn-8:hover:after {
166+
-webkit-transform: rotateX(-180deg);
167+
transform: rotateX(-180deg);
168+
}
169+
170+
129171
@media (max-width: 700px) {
130172
.container .text{
131173
font-size: 30px;

0 commit comments

Comments
 (0)