Skip to content

Instantly share code, notes, and snippets.

@goofmint
Last active July 13, 2016 07:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goofmint/661abc377a9f6d489b9ffe52ceeda82a to your computer and use it in GitHub Desktop.
Save goofmint/661abc377a9f6d489b9ffe52ceeda82a to your computer and use it in GitHub Desktop.
1.md
'> .replaceBox click': function() {
// 新しいHTMLを生成
this.__count += 1;
var count = this.__count;
var element = $('<div>'+count+'</div>');
// アニメーションの仕方を取得
var input = this.$find('select')[0];
var transition = input.options[input.selectedIndex].value;
// 処理の実行
this.replaceBoxController.replace(element, {transition: transition});
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment