noname02
setTimeout을 사용한다. var delay = function() {동작} setTimeout(delay, timems); 이 때 timems가 같으면 결국 쓰나 안쓰나 똑같다. 따라서 .each(function(i) { var delay ... setTimeout(delay, timems * i);} 와 같이 i를 이용해 시간을 눌려주는 방법을 생각해볼 수 있다.
일종의 위젯과 같은 기능으로 테마 고유의 위젯이라고 생각하면 된다.각종 사용자 설정 함수를 설정할 수 있고, 기본적으로 제공되는 여러가지 기능을 사용할 수 있게 해준다. register_nav_menus() - 네비게이션 메뉴를 등록한다.
CSSkeyframes을 이용한 animation을 사용했을 때, 부모컨테이너가 display: none 상태였다가 다시 보여지게되면 애니메이션이 처음부터 작동한다.
ajax로 엘리먼트를 append 한 후 이벤트리스너를 등록할 때에는$('body').on('event', 'selector', function() { }); 을 사용한다. youtube api 사용 // API를 로드한다.var tag = document.createElement('script');tag.src = "https://www.youtube.com/player_api";var firstScriptTag = document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); // API로드시 콜백함수 function onYouTubePlayerAPIReady() { } // 선..
CSS로 애니메이션효과를 만들 수 있다.애니메이션은 우선 키프레임을 정의하여 효과를 부여한다. 1234567@keyframes name { 0% { ... } n% { ... } 100% { ... }}cs 와 같이 키프레임을 정의한다. 키프레임을 정의했으면 애니메이션을 적용할 셀렉터에 animation 프로퍼티로 적용한다. 1234567891011.selector { animation: animation-name, animation-duration, animation-timing-function, animation-delay, animation-iteration-count, animation-direction, animation-fill-mode, animation-play-state;} cs anim..