An angular directive to create 360 degree slider.
Currently only supports basic operations:
- At the start it loads and visualizes the first image.
- Once the first image is loaded, it loads the rest of the list asynchronously. When done, spins 360 degrees and activates mouse and touch interaction.
- Give more feedback about loading status and when it's ready to spin.
Angular JS.
- Install the npm dependencies:
npm install
-
download the files or use Bower:
add
"angular-threesixty-slider": "latest"
to yourbower.json
file then runbower install
OR runbower install angular-threesixty-slider --save
-
include the files in your app
src/regthreesixty.js
src/regthreesixty.css
-
include the module in angular (i.e. in
app.js
) -reg.threesixty
- Create a list of images in your scope:
$scope.imageList = [];
for( i=1; i<50; i++ ){
$scope.imageList.push( 'images/' + i + '.jpg' );
}
- Include threesixty directive in HTML. Set image list using
images
attribute.
<threesixty images="imageList" animate-after-loading="true" speed-multiplier="20">
- Trigger a rotation by emitting the event
threesixty-animate
to the directive scope