Web (2) 썸네일형 리스트형 [HTML/CSS] 흔들리는 종 아이콘 만들어보기 웹 사이트를 보던 중 좌우로 흔들리는 종 아이콘이 재밌어 보여서 만들어 봤습니다. transform-origin이 구현에 가장 중요한 부분이라고 생각합니다. fa fa-bell See the Pen VweQVgZ by bjj3036 (@bjj3036) on CodePen. [JS] 화살표 함수(Arrow Function), 정규 함수(Normal Function) 그리고 this JavaScript에서 this는 너무 애매하고 복잡한 부분인 듯 하다 // 화살표 함수(Arrow Function) ({a: function(){ (function(){console.log(this)})() // console : Window } }).a() // 정규 함수(Normal Function) ({a: function(){ (()=>console.log(this))() // console : {a: fn} } }).a() // 정규함수와 Function.prototype.call ({a: function(){ (function(){ console.log(this) // console : {a: fn} }).call(this) } }).a() 이전 1 다음