Skip to content

Commit ed855af

Browse files
committed
setting default animation speed back to 300
1 parent 9822150 commit ed855af

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ the `SlideContainer` class also has public `nextSlide` and `previousSlide` funct
7171

7272
the `<Slides:SlideContainer>` element also has a property called `loop` which is a boolean value and if set to true will cause the slide to be an endless loop. The suggested use case would be for a Image Carousel or something of that nature.
7373

74+
the `<Slides:SlideContainer>` element also has a property called `velocityScrolling` which is a boolean value and if set to true will cause the slide to be an endless loop. The suggested use case would be for a Image Carousel or something of that nature.
75+
7476
the `<Slides:SlideContainer>` element also has a property called `interval` which is a integer value and the value is in milliseconds. The suggested use case would be for a Image Carousel or something of that nature which can change the image for every fixed intervals. In unloaded function call `page.getViewById("your_id").stopSlideshow()` to unregister it (your_id is the id given to `<Slides:SlideContainer>`), it can be restarted with `startSlidShow`.
7577

7678
#### Android Optional Attributes
@@ -132,6 +134,8 @@ _please note this will change the panning gesture for your entire project._
132134

133135
[Obsessive Inc/Abhijith Reddy](https://github.com/Obsessive)
134136

137+
[Victor Nascimento](https://github.com/vjoao)
138+
135139
And thanks to [Nathan Walker](https://github.com/NathanWalker) for setting up the {N} plugin seed that was used to help get this plugin up and running. More info can be found about it here:
136140
https://github.com/NathanWalker/nativescript-plugin-seed
137141

nativescript-slides.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export class SlideContainer extends AbsoluteLayout {
353353
let elapsedTime = Math.abs(offset / endingVelocity) * 100;
354354
animationDuration = Math.max(Math.min(elapsedTime, 100), 64);
355355
} else {
356-
animationDuration = 250; // default value
356+
animationDuration = 300; // default value
357357
}
358358

359359
let transition = new Array();
@@ -382,7 +382,7 @@ export class SlideContainer extends AbsoluteLayout {
382382
let elapsedTime = Math.abs(offset / endingVelocity) * 100;
383383
animationDuration = Math.max(Math.min(elapsedTime, 100), 64);
384384
} else {
385-
animationDuration = 250; // default value
385+
animationDuration = 300; // default value
386386
}
387387

388388
let transition = new Array();

0 commit comments

Comments
 (0)