質問編集履歴

1

コード追加

2016/12/09 14:13

投稿

NobumitsuHata
NobumitsuHata

スコア141

test CHANGED
File without changes
test CHANGED
@@ -1,5 +1,385 @@
1
1
  bind内のcssアニメーションが、綺麗に0pxから60pxに変わらず、急に60pxになります。
2
2
 
3
+ ```html
4
+
5
+ <div id="form">
6
+
7
+ <div id="title">登録する方</div>
8
+
9
+ <input id="nickname" type="text" placeholder="ニックネーム" autocomplete="off"></input>
10
+
11
+ <input id="email" type="text" placeholder="test@gmail.com" autocomplete="off"></input>
12
+
13
+ <input id="password" type="password" placeholder="パスワード(6文字以上)" autocomplete="off"></input>
14
+
15
+ <input id="password_check" type="password" placeholder="パスワード(確認用)" autocomplete="off"></input>
16
+
17
+ <div id="submit">送信</div>
18
+
19
+ </div>
20
+
21
+ <div id="alert">
22
+
23
+ <div id="alert_title">Not Found</div>
24
+
25
+ <div id="alert_description">
26
+
27
+ すでにアカウントが存在します。<br>
28
+
29
+ 恐れ入りますが、もう一度やり直してください。
30
+
31
+ </div>
32
+
33
+ </div>
34
+
35
+ ```
36
+
37
+ ```css
38
+
39
+ span {
40
+
41
+ display: table-cell;
42
+
43
+ vertical-align: middle;
44
+
45
+ text-align: center;
46
+
47
+ }
48
+
49
+
50
+
51
+ #register_wrapper {
52
+
53
+ display: table;
54
+
55
+ position: relative;
56
+
57
+ margin: 0 auto;
58
+
59
+ width: 400px;
60
+
61
+ height: 100vh;
62
+
63
+ }
64
+
65
+
66
+
67
+ #middle {
68
+
69
+ perspective: 100px;
70
+
71
+ -webkit-perspective: 100px;
72
+
73
+ -ms-perspective: 100px;
74
+
75
+ -o-perspective: 100px;
76
+
77
+ -moz-perspective: 100px;
78
+
79
+ }
80
+
81
+
82
+
83
+ #form {
84
+
85
+ transform: translateZ(0px);
86
+
87
+ -webkit-transform: translateZ(0px);
88
+
89
+ }
90
+
91
+
92
+
93
+ #title {
94
+
95
+ width: 100%;
96
+
97
+ color: #fff;
98
+
99
+ font-size: 18px;
100
+
101
+ font-weight: bold;
102
+
103
+ line-height: 1;
104
+
105
+ text-align: center;
106
+
107
+ }
108
+
109
+
110
+
111
+ #nickname {
112
+
113
+ margin-top: 30px;
114
+
115
+ background: rgba(255,255,255,0);
116
+
117
+ width: 100%;
118
+
119
+ height: 30px;
120
+
121
+ color: #fff;
122
+
123
+ font-size: 16px;
124
+
125
+ line-height: 30px;
126
+
127
+ outline: 0;
128
+
129
+ border-top: none;
130
+
131
+ border-right: none;
132
+
133
+ border-left: none;
134
+
135
+ border-radius: 0;
136
+
137
+ border-bottom: 2px solid #93CFF4;
138
+
139
+ }
140
+
141
+
142
+
143
+ #nickname:placeholder-shown {
144
+
145
+ color: #58656F;
146
+
147
+ }
148
+
149
+
150
+
151
+ #nickname::-webkit-input-placeholder {
152
+
153
+ color: #58656F;
154
+
155
+ }
156
+
157
+
158
+
159
+ #email {
160
+
161
+ margin-top: 20px;
162
+
163
+ background: rgba(255,255,255,0);
164
+
165
+ width: 100%;
166
+
167
+ height: 30px;
168
+
169
+ color: #fff;
170
+
171
+ font-size: 16px;
172
+
173
+ line-height: 30px;
174
+
175
+ outline: 0;
176
+
177
+ border-top: none;
178
+
179
+ border-right: none;
180
+
181
+ border-left: none;
182
+
183
+ border-radius: 0;
184
+
185
+ border-bottom: 2px solid #93CFF4;
186
+
187
+ }
188
+
189
+
190
+
191
+ #email:placeholder-shown {
192
+
193
+ color: #58656F;
194
+
195
+ }
196
+
197
+
198
+
199
+ #email::-webkit-input-placeholder {
200
+
201
+ color: #58656F;
202
+
203
+ }
204
+
205
+
206
+
207
+ #password {
208
+
209
+ margin-top: 20px;
210
+
211
+ background: rgba(255,255,255,0);
212
+
213
+ width: 100%;
214
+
215
+ height: 30px;
216
+
217
+ color: #fff;
218
+
219
+ font-size: 16px;
220
+
221
+ line-height: 30px;
222
+
223
+ outline: 0;
224
+
225
+ border-top: none;
226
+
227
+ border-right: none;
228
+
229
+ border-left: none;
230
+
231
+ border-radius: 0;
232
+
233
+ border-bottom: 2px solid #93CFF4;
234
+
235
+ }
236
+
237
+
238
+
239
+ #password:placeholder-shown {
240
+
241
+ color: #58656F;
242
+
243
+ }
244
+
245
+
246
+
247
+ #password::-webkit-input-placeholder {
248
+
249
+ color: #58656F;
250
+
251
+ }
252
+
253
+
254
+
255
+ #password_check {
256
+
257
+ margin-top: 20px;
258
+
259
+ background: rgba(255,255,255,0);
260
+
261
+ width: 100%;
262
+
263
+ height: 30px;
264
+
265
+ color: #fff;
266
+
267
+ font-size: 16px;
268
+
269
+ line-height: 30px;
270
+
271
+ outline: 0;
272
+
273
+ border-top: none;
274
+
275
+ border-right: none;
276
+
277
+ border-left: none;
278
+
279
+ border-radius: 0;
280
+
281
+ border-bottom: 2px solid #93CFF4;
282
+
283
+ }
284
+
285
+
286
+
287
+ #password_check:placeholder-shown {
288
+
289
+ color: #58656F;
290
+
291
+ }
292
+
293
+
294
+
295
+ #password_check::-webkit-input-placeholder {
296
+
297
+ color: #58656F;
298
+
299
+ }
300
+
301
+
302
+
303
+ #submit {
304
+
305
+ display: inline-block;
306
+
307
+ margin-top: 30px;
308
+
309
+ padding: 10px 20px;
310
+
311
+ color: #b0dcf6;
312
+
313
+ font-size: 16px;
314
+
315
+ font-weight: bold;
316
+
317
+ line-height: 1;
318
+
319
+ border: 2px solid #93CFF4;
320
+
321
+ border-radius: 5px;
322
+
323
+ }
324
+
325
+
326
+
327
+ #alert {
328
+
329
+ /*display: none;*/
330
+
331
+ padding: 20px 20px 0;
332
+
333
+ transform: translateZ(60px);
334
+
335
+ -webkit-transform: translateZ(60px);
336
+
337
+ background: rgba(56,56,58,0.3);
338
+
339
+ opacity: 1;
340
+
341
+ overflow: hidden;
342
+
343
+ }
344
+
345
+
346
+
347
+ #alert_title {
348
+
349
+ color: #93CFF4;
350
+
351
+ font-size: 20px;
352
+
353
+ font-weight: bold;
354
+
355
+ line-height: 1;
356
+
357
+ text-align: center;
358
+
359
+ }
360
+
361
+
362
+
363
+ #alert_description {
364
+
365
+ margin-top: calc(25px - (16px * 1.7 - 16px) / 2);
366
+
367
+ margin-bottom: calc(20px - (16px * 1.7 - 16px) / 2);
368
+
369
+ color: #fff;
370
+
371
+ font-size: 16px;
372
+
373
+ font-weight: bold;
374
+
375
+ line-height: 1.7;
376
+
377
+ text-align: center;
378
+
379
+ }
380
+
381
+ ```
382
+
3
383
  ```javascript
4
384
 
5
385
  $("#form").fadeOut("nomal", function() {