diff --git a/demos/animations/index.ts b/demos/animations/index.ts index 7f0b023625..8f68b6208e 100644 --- a/demos/animations/index.ts +++ b/demos/animations/index.ts @@ -1,49 +1,22 @@ import {App, Animation} from 'ionic/ionic'; - -let opacity = 0.2; -let rotateZ = '180deg'; -let translateX = '100px'; -let scale = 0.6; - @App({ templateUrl: 'main.html' }) class IonicApp { constructor() { - this.animation = new Animation(); + this.animation = new Animation(); this.animation .duration(2000) - .easing('spring', { damping: 6, elasticity: 10 }); + var ionitronSpin = new Animation(document.querySelector('#ionitron')); + ionitronSpin + .from('transform', 'rotate(0deg)') + .to('transform', 'rotate(360deg)') - var ball = new Animation( document.querySelector('.ball') ); - ball - .from('translateX', '0px') - .to('translateX', '250px') - - this.animation.add(ball); - - - var row1 = new Animation( document.querySelectorAll('.square') ); - row1 - .from('opacity', 0.8) - .to('opacity', 0.2) - - this.animation.add(row1); - - var row2 = new Animation( document.querySelectorAll('.square2') ); - row2 - .from('rotate', '0deg') - .from('scale', '1') - .to('rotate', '90deg') - .to('scale', '0.5') - .before.addClass('added-before-play') - .after.addClass('added-after-finish') - - this.animation.add(row1, row2); + this.animation.add(ionitronSpin); this.animation.onReady(animation => { console.log('onReady', animation); diff --git a/demos/animations/main.html b/demos/animations/main.html index 03a7fbeb14..e24362953c 100644 --- a/demos/animations/main.html +++ b/demos/animations/main.html @@ -1,53 +1,33 @@ - Animation Tests + Animations -
-
+ + +
+ +
- -
- -
-
-
- -
- -
- -
-
-
- -
- -

- -

- -

- - -

+ diff --git a/demos/buttons/index.html b/demos/buttons/index.html new file mode 100644 index 0000000000..a6cb807e57 --- /dev/null +++ b/demos/buttons/index.html @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/demos/buttons/index.ts b/demos/buttons/index.ts new file mode 100644 index 0000000000..35861ee71b --- /dev/null +++ b/demos/buttons/index.ts @@ -0,0 +1,7 @@ +import {App} from 'ionic/ionic'; + +@App({ + templateUrl: 'main.html' +}) + +class DemoApp {} \ No newline at end of file diff --git a/demos/buttons/main.html b/demos/buttons/main.html new file mode 100644 index 0000000000..24c06781f9 --- /dev/null +++ b/demos/buttons/main.html @@ -0,0 +1,31 @@ + + + Buttons + + + + + +

Colors

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +

+ +
diff --git a/demos/navigation/index.ts b/demos/navigation/index.ts index c525b27b28..175539340a 100644 --- a/demos/navigation/index.ts +++ b/demos/navigation/index.ts @@ -7,18 +7,12 @@ import {NavParams, NavController} from 'ionic/ionic'; template: '' + '' + '{{title}}' + - '' + - '' + - '' + '' + '' + - '

{{title}}

' + - '

' + - '

' + - '

' + - '' + - '' + - '' + + '

{{title}}

' + + '

' + + '

' + + '

' + '
' }) class FirstPage { @@ -29,7 +23,6 @@ class FirstPage { ) { this.nav = nav; this.title = 'First Page'; - this.pushPage = SecondPage; this.pushData = { id: 420 @@ -40,7 +33,6 @@ class FirstPage { let items = [ ThirdPage ]; - this.nav.setItems(items); } @@ -52,14 +44,15 @@ class FirstPage { @IonicView({ template: ` + + {{title}} +

Second page

-

This page does not have a nav bar!

-

-

-

-

-
+

+

+

+

` }) @@ -70,7 +63,6 @@ class SecondPage { ) { this.nav = nav; this.params = params; - console.log('Second page params:', params); } @@ -79,7 +71,6 @@ class SecondPage { FirstPage, ThirdPage ]; - this.nav.setItems(items); } @@ -96,12 +87,13 @@ class SecondPage { @IonicView({ template: ` - Third Page Header + + Third Page Header +

- +

-
` }) @@ -119,11 +111,10 @@ class ThirdPage { } - @App({ template: '' }) -class E2EApp { +class DemoApp { constructor() { this.root = FirstPage; }