Fullscreen background slideshow with blending images
Download this repository and install it:
- In your application's config.json file, include the following line in your dependencies:
"dependencies": {
"com.miga.slideshow": "1.0"
}
- Copy the
com.miga.slideshow
folder into yourapp/widgets
directory.
Or simply use the gitTio CLI:
$ gittio install com.miga.slideshow
<Widget src="com.miga.slideshow" id="slideshow"/>
$.slideshow.init({
images: ["/images/1.jpg","/images/2.jpg","/images/3.jpg"],
time: 5000
})
$.slideshow.start();
$.slideshow.pause();
$.slideshow.resume();
For big images it is useful to add this to your tiapp.xml:
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<application android:largeHeap="true"/>
</manifest>
</android>
otherwise it won't blend the images on Android.
Method | Description |
---|---|
init | set images and time |
start | start slideshow |
pause | pause slideshow |
resume | resume slideshow |
Feel free to improve this widget by forking, submitting pull requests or creating issues.
- 1.0 First version
This project is licensed under CC BY-SA 4.0. Please read the https://creativecommons.org/licenses/by-sa/4.0/ for more information about this license.
Appcelerator, Appcelerator Titanium and associated marks and logos are trademarks of Appcelerator, Inc.
Titanium is Copyright (c) 2008-2015 by Appcelerator, Inc. All Rights Reserved.
Titanium is licensed under the Apache Public License (Version 2).