mswitch.co.kr에 사용된 JS $(document).ready(function () { mswitch = { init: function () { mswitch.bubble(); mswitch.scroll(); mswitch.gnb(); mswitch.anchor(); mswitch.mobile(); mswitch.layer(); }, /* 거품 올라오는 애니메이션 */ bubble: function() { var bArray = []; var sArray = [6,8,10,12,20,50]; var $bubbles = $('.bubbles'); var $document_width = $(document).width(); if($document_width > 800) { for (var i = 0..
부드러운 스크롤 사용시 스크롤이 끝난 후에 이벤트를 적용할 경우 사용합니다. $.fn.scrollStopped = function(callback) { var that = this, $this = $(that); $this.scroll(function(ev) { clearInterval(scrollInterval); clearTimeout($this.data('scrollTimeout')); $this.data('scrollTimeout', setTimeout(callback.bind(that), 250, ev)); }); }; $(window).scrollStopped(function(ev){ console.log('스크롤 정지'); });
1. animation animation-name: @keyframes 이름 (예제에서는 fadeOut 을 사용) animation-duratuion: 타임 프레임의 길이, 키프레임이 동작하는 시간을 설정할 때 사용 animation-timing-function: 애니메이션 속도 조절/그래프 (linear/ease/ease-in/ease-out/ease-in-out/cubic-bezier) animation-delay: 애니메이션을 시작하기 전 지연시간 설정 animation-iteration-count: 반복 횟수 지정 animation-direction: 반복 방향 설정 (normal/reverse/alternate/alternate-reverse) animation-fill-mode: 애니메이션 시..

Give me a clicky Go on, go already! Click it ya hear! Tappy tappy Go back 출처: www.youtube.com/watch?v=LKwXoaFwYFk&list=LL&index=1&t=256s&ab_channel=DesignCourse 사용라이브러리: animejs.com/ anime.js Javascript animation engine animejs.com animate.style/ Animate.css | A cross-browser library of CSS animations. Animate.css is a library of ready-to-use, cross-browser animations for you to use in your proj..