Skip to content

Instantly share code, notes, and snippets.

@egeland
Last active May 2, 2024 05:23
Show Gist options
  • Save egeland/2c40d2657f1237d66f63 to your computer and use it in GitHub Desktop.
Save egeland/2c40d2657f1237d66f63 to your computer and use it in GitHub Desktop.
Attempt at a simple image carousel for Aurelia
<template>
<require from="./carousel"></require>
<carousel images.bind="images" interval="5000" ></carousel>
</template>
export class test {
constructor() {
this.images = [
{ src: 'http://thecatapi.com/api/images/get?format=src&type=jpg', alt: 'Cat Pic 2' },
{ src: 'http://thecatapi.com/api/images/get?format=src&type=gif', alt: 'Cat Pic 1' },
{ src: 'http://thecatapi.com/api/images/get?format=src&type=png', alt: 'Cat Pic 3' }
];
}
}
@egeland
Copy link
Author

egeland commented Feb 6, 2016

That works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment