(container)
| 46 | |
| 47 | class ToBehavior extends TimelineBehavior { |
| 48 | onDisplaying(container) { |
| 49 | let timeline = this.timeline = new Timeline(); |
| 50 | let one=container.first, two=one.next, three=two.next, four=container.last, size=one.width; |
| 51 | let r=container.x+container.width-size, b=container.y+container.height-size; |
| 52 | timeline.to(one, { state: 3 }, 500, Math.quadEaseOut, 0); |
| 53 | timeline.to(two, { x: r, state: 3 }, 500, Math.quadEaseOut, -400); |
| 54 | timeline.to(three, { x: r, y: b, state: 3 }, 500, Math.quadEaseOut, -400); |
| 55 | timeline.to(four, { y: b, state: 3 }, 500, Math.quadEaseOut, -400); |
| 56 | super.startTimeline(container); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | class FromBehavior extends TimelineBehavior { |
nothing calls this directly
no test coverage detected