回答編集履歴

2

追記

2016/06/04 16:42

投稿

退会済みユーザー
test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
 
12
12
 
13
- easingを使えば色々アニメーションしますよ
13
+ [easing](http://gsgd.co.uk/sandbox/jquery/easing/)を使えば色々アニメーションしますよ
14
14
 
15
15
 
16
16
 

1

アニメーション追記

2016/06/04 16:41

投稿

退会済みユーザー
test CHANGED
@@ -7,3 +7,37 @@
7
7
  ```
8
8
 
9
9
  こんな風に書けちゃいますよ
10
+
11
+
12
+
13
+ easingを使えば色々アニメーションしますよ
14
+
15
+
16
+
17
+ ```javascript
18
+
19
+ var EASING=["easeOutElastic","easeInOutQuint",
20
+
21
+ "easeInOutSine","easeInOutBack","easeOutExpo",
22
+
23
+ "easeOutCirc","easeInOutCirc","easeOutBounce"];
24
+
25
+ $(function(){
26
+
27
+ $("input[name='radio-320']").change(function(){
28
+
29
+ if($(this).val()=="出席"){
30
+
31
+ $(".with-option.parent01").show(500,EASING[Math.floor(Math.random()*EASING.length)]);
32
+
33
+ }else{
34
+
35
+ $(".with-option.parent01").hide(500,EASING[Math.floor(Math.random()*EASING.length)]);
36
+
37
+ }
38
+
39
+ });
40
+
41
+ })
42
+
43
+ ```