Skip to content

Instantly share code, notes, and snippets.

@johntom
Created May 3, 2019 12:34
Show Gist options
  • Save johntom/d9fb664cabc97e136c21a2aabbc2f689 to your computer and use it in GitHub Desktop.
Save johntom/d9fb664cabc97e136c21a2aabbc2f689 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body>
<div aurelia-app="src/configure">
Loading...
</div>
<script src="https://rawgit.com/aurelia-ui-toolkits/demo-materialize/gh-pages/jspm_packages/system.js"></script>
<script src="https://rawgit.com/aurelia-ui-toolkits/demo-materialize/gh-pages/jspm.config.js"></script>
<script>
System.import("aurelia-bootstrapper");
</script>
</body>
</html>
.md-parallax-demo .parallax {
z-index: 0;
}
<template>
<require from="./app.css"></require>
<div class="md-parallax-demo">
<div class="row">
<div class="col s12 m8">
<md-card title="Parallax">
<p>
scroll down
</p>
</md-card>
</div>
</div>
<div class="parallax-container">
<div md-parallax>
<img src="https://aurelia-ui-toolkits.github.io/demo-materialize/images/parallax-1.jpg">
</div>
</div>
<div class="row">
<div class="col s12 m8">
<md-card title="More content">
<p>
some more scrolling content
</p>
</md-card>
</div>
</div>
<div class="parallax-container">
<div md-parallax>
<img src="https://aurelia-ui-toolkits.github.io/demo-materialize/images/parallax-2.jpg">
</div>
</div>
<div class="row">
<div class="col s12 m8">
<md-card title="More content">
<p>
even more scrolling content
</p>
</md-card>
</div>
</div>
</div>
</template>
export class App { }
export async function configure(aurelia) {
await aurelia.loader.loadModule("materialize-css");
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin("aurelia-materialize-bridge", bridge => bridge.useAll())
.plugin("aurelia-validation")
.globalResources("src/shared/logger");
await aurelia.start();
aurelia.setRoot("src/app");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment