Skip to content

Instantly share code, notes, and snippets.

@AquilaSands
Last active October 2, 2018 21:42
Show Gist options
  • Select an option

  • Save AquilaSands/d434af4f126427b29eafdd63d16b9bec to your computer and use it in GitHub Desktop.

Select an option

Save AquilaSands/d434af4f126427b29eafdd63d16b9bec to your computer and use it in GitHub Desktop.
Aurelia Carousel Gist
<template>
<require from=./carousel></require>
<h1>${message}</h1>
<div>
<carousel show-nav.bind="true" heading="Morgan Fillman" options.bind="options">
<img repeat.for="i of 5" src="https://morganfillman.space/400/300" >
</carousel>
</div>
<div style="height:50px;"></div>
<div>
<carousel show-nav.bind="true" heading="Morgan Fillman" options.bind="options2">
<span repeat.for="i of 5">fsfsdfaffdfaf ${$index}</span>
</carousel>
</div>
</template>
export class App {
message = 'Aurelia Carousel Test';
options = {
duration: 600,
perPage: {
640: 2,
768: 3,
1080: 4
},
draggable:true,
loop: false,
autoPlay: true,
autoPlayInterval: 2500
};
options2 = {
duration: 600,
perPage: {
640: 2,
768: 3,
1080: 4
},
draggable:true,
loop: false,
autoPlay: true,
autoPlayInterval: 2500
};
}
<!doctype html>
<html>
<head>
<title>Aurelia</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
</head>
<body aurelia-app>
<h1>Loading...</h1>
<script src="https://jdanyow.github.io/rjs-bundle/node_modules/requirejs/require.js"></script>
<script src="https://jdanyow.github.io/rjs-bundle/config.js"></script>
<script src="https://jdanyow.github.io/rjs-bundle/bundles/aurelia.js"></script>
<script src="https://jdanyow.github.io/rjs-bundle/bundles/babel.js"></script>
<script>
require(['aurelia-bootstrapper']);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment