-
- ANDROID
- ANDROID_TABLET
- CHROME
- CHROME_VERSION
- DOC_MODE
- DOC_MODE_IE10_LT
- DOC_MODE_IE11_LT
- DOC_MODE_IE12_LT
- DOC_MODE_IE8_LT
- DOC_MODE_IE9_LT
- EDGE
- FIREFOX
- IE10_LT
- IE11_LT
- IE7_LT
- IE8_LT
- IE9_LT
- IE_COMPATIBLE
- IE_VERSION
- IPAD
- IPHONE
- LINUX
- MAC
- MOBILE
- MOBILE_IOS
- MOZILLA
- MSIE
- OPERA
- OPERA_MINI
- OS_VERSION
- SAFARI
- SAMSUNG
- SAMSUNG_VERSION
- SMART_PHONE
- TABLET
- TOUCH_DEVICE
- VERSION
- WEBKIT
- WEBKIT_VERSION
- WINDOWS
- WINDOWS_PHONE
- WINDOWS_TABLET
-
- addChild
- addClass
- addEvent
- attr
- children
- clone
- closest
- contentHeight
- contentWidth
- css
- each
- element
- hasClass
- hasEvent
- height
- html
- innerHeight
- innerWidth
- insertSWF
- match
- next
- outerHeight
- outerWidth
- parent
- prev
- prop
- rect
- remove
- removeAllEvent
- removeAttr
- removeChild
- removeClass
- removeEvent
- removeProp
- replaceWith
- scrollLeft
- scrollTop
- selector
- selectorAll
- text
- transition
- trigger
- width
ParallaxScroll
- Parallax Scroll 이벤트 검출기
Methods
-
ParallaxScroll( positions, scrollType, scrollTarget )
ParallaxScroll 생성-
positions : Array포지션 데이타 배열, [{min:Number, max:Number, data:*}, ...
-
scrollType : Stringvertical, horizontal (기본값 vertical)
-
scrollTarget : ElementSelectorjQuery
-
-
update( positions ) : ParallaxScrollver 1.0~
포지션 데이타 갱신-
positions : Array포지션 데이타 배열, [{min:Number, max:Number, data:*}, ...
-
-
trigger() : ParallaxScrollver 1.0~
강제로 실행시킬때 사용, 포지션 데이타 갱신 이후에 주로 사용 -
enable() : ParallaxScrollver 1.0~
ParallaxScroll 검출 허용 설정 -
disable() : ParallaxScrollver 1.0~
ParallaxScroll 검출 비허용 설정 -
clear() : ParallaxScrollver 1.0~
이벤트 및 기본설정 삭제
Events
No. | type | description | property | ver |
---|---|---|---|---|
1 | activate | 구간에 진입시 한번만 발생 |
|
1.0 |
2 | between | 구간에 진입시 계속해서 발생 |
|
1.0 |
3 | deactivate | 전체 구간에서 벗어날시 한번만 발생 |
|
1.0 |
Example
var positions = [{min:100, max:300, data:'test1'}, {min:310, max:500}];
var pScroll = new $B.event.ParallaxScroll( positions )
.addListener( 'activate', pScrollHandler )
.addListener( 'between', pScrollHandler )
.addListener( 'deactivate', pScrollHandler );
function pScrollHandler (e) {
console.log( e.type, e.index );
}