-
- 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
TweenCore
- TweenCore
Methods
-
TweenCore( duration, begin, finish, option, data )
TweenCore 생성-
duration : Number지속시간, 초
-
begin : Number출발값
-
finish : Number도착값
-
option : Object
-
ease : Function$B.utils.ease 설정 (기본값 "quadOut")
-
-
data : *핸들러에서 전달받을 e.data
-
-
delay( time, callback ) : TweenCorever 1.0~
해당 초만큼 지연시킨후 다음 Method실행, 한명령줄에 하나의 delay만 사용한다.-
time : Number초단위, 예) 0.5초
-
callback : Functiondelay가 끝나는 호출
-
-
start() : TweenCorever 1.0~
TweenCore 리셋후 시작. -
stop() : TweenCorever 1.0~
TweenCore 정지. -
reset() : TweenCorever 1.0~
TweenCore 정지후 0. -
seek( progress ) : TweenCorever 1.0~
해당탐색 구간으로 Tween.-
progress : Number0 ~ 1
-
-
seekTo( progress ) : TweenCorever 1.0~
해당탐색 구간으로 즉시 이동.-
progress : Number0 ~ 1
-
-
toggle() : TweenCorever 1.0~
progress가 0이면 1, 1이면 0으로 Tween. -
value( begin, finish, data ) : TweenCorever 1.0~
value 재설정-
begin : Number출발값
-
finish : Number도착값
-
data : *핸들러에서 전달받을 e.data
-
-
fps( frame ) : TweenCorever 1.0~
FPS (초당 프레임) 설정.-
frame : Int기본 fps PC : 60, Mobile : 30
-
Events
No. | type | description | property | ver |
---|---|---|---|---|
1 | tween | Tweener동작이 멈출때까지 계속 발생 |
|
1.0 |
2 | complete | Tweener가 완료시 발생 | tween 와 동일 | 1.0 |
2 | seekcomplete | seek(), seekTo()로 Tween시킨후 완료시 발생 | tween 와 동일 | 1.0 |
Example
var tweener = new $B.utils.TweenCore( 0.3, 10, 200 )
.addListener( 'tween', function (e) {
//
})
.addListener( 'complete', function (e) {
//
})
.addListener( 'seekcomplete', function (e) {
//
}).start();
//TweenCore 정지
tweener.stop();