An open API service indexing awesome lists of open source software.

https://github.com/paralin/meteor-parallax

Creates 3D parallax effects using mouse cursor or device orientation.
https://github.com/paralin/meteor-parallax

Last synced: 6 months ago
JSON representation

Creates 3D parallax effects using mouse cursor or device orientation.

Awesome Lists containing this project

README

          

Parallax for Meteor
===============

Create 3D parallax effects using mouse cursor or device orientation. This jQuery plugin allows you to transform a normally flat webpage into an interactive and impressive canvas of seemingly 3D elements.

Getting Started
==========

1. Add this package to your project:
`mrt add parallax`
2. Add some elements using the example below.
3. When that template is rendered, initialize parallax!
`Template.myParallax.rendered = function(){ $("#myParallax").parallax(); };`

Example
========

You can see a full demo running [here](http://meteorparallax.herokuapp.com/), or you can see the source code [here](https://github.com/kidovate/meteor-parallax-demo).
```








```

```
Template.myParallax.rendered = function(){
var scene = $("#myParallax").parallax();
$scene.parallax('enable');
//$scene.parallax('disable');
$scene.parallax('calibrate', false, true);
$scene.parallax('invert', false, true);
$scene.parallax('limit', false, 10);
$scene.parallax('scalar', 2, 8);
$scene.parallax('friction', 0.2, 0.8);
};
```