All Projects â†’ Leopoldthecoder â†’ Perspective

Leopoldthecoder / Perspective

Licence: MIT License
🖼Parallax scrolling effect. And more.

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to Perspective

universal-parallax
Easy parallax plugin using pure javascript. Also works on mobile platforms. Cross browser support.
Stars: ✭ 107 (+33.75%)
Mutual labels:  parallax, vanilla-javascript, parallax-scrolling, parallax-javascript-library
smooth-parallax
Smooth Parallax makes it a lot easier to move objects when the page scroll with ease.
Stars: ✭ 66 (-17.5%)
Mutual labels:  parallax, parallax-scrolling, parallax-javascript-library
Rallax.js
Dead simple parallax scrolling.
Stars: ✭ 1,441 (+1701.25%)
Mutual labels:  parallax, vanilla-javascript, parallax-scrolling
Parallaxie
Easiest, Responsive and Customizable Parallax jQuery Plugin
Stars: ✭ 65 (-18.75%)
Mutual labels:  parallax, parallax-scrolling, parallax-javascript-library
react-rellax
React Parallax component using Rellax.js
Stars: ✭ 39 (-51.25%)
Mutual labels:  parallax, parallax-scrolling, parallax-javascript-library
Vanilla Tilt.js
A smooth 3D tilt javascript library.
Stars: ✭ 2,851 (+3463.75%)
Mutual labels:  vanilla-javascript, tilt-effect
hongkong
A parallax scroll effect plugin
Stars: ✭ 46 (-42.5%)
Mutual labels:  parallax, parallax-scrolling
AFTPhotoScroller
A simple photo browser using like iOS photo app.
Stars: ✭ 20 (-75%)
Mutual labels:  parallax-scrolling
vanilla-js-drawer
A dependency-free Vanilla JS drawer. No dependencies, no automation build tools.
Stars: ✭ 20 (-75%)
Mutual labels:  vanilla-javascript
upload
How to Upload a File to a Server in PHP
Stars: ✭ 83 (+3.75%)
Mutual labels:  vanilla-javascript
priority-plus
A modern implementation of the priority plus navigation pattern.
Stars: ✭ 30 (-62.5%)
Mutual labels:  vanilla-javascript
snake-game
Classic snake game built in Vanilla JavaScript using the Canvas API
Stars: ✭ 56 (-30%)
Mutual labels:  vanilla-javascript
genmusic
Generative Music- a stochastic modal music generator
Stars: ✭ 17 (-78.75%)
Mutual labels:  vanilla-javascript
neodigm55
An eclectic low-code vanilla JavaScript UX micro-library for those that defiantly think for themselves.
Stars: ✭ 14 (-82.5%)
Mutual labels:  parallax
spider-covid-19-viz-3d
Speedy access to the latest, local COVID-19 data with a familiar interface: the Globe
Stars: ✭ 19 (-76.25%)
Mutual labels:  vanilla-javascript
js-calendar
The lightest Javascript calendar out there, without any dependency.
Stars: ✭ 37 (-53.75%)
Mutual labels:  vanilla-javascript
shoot game
🎮 It is a game using HTML5 Canvas and Vanilla JavaScript.
Stars: ✭ 35 (-56.25%)
Mutual labels:  vanilla-javascript
tabbis.js
Pure vanilla javascript tabs with nesting
Stars: ✭ 44 (-45%)
Mutual labels:  vanilla-javascript
vanilla-js-carousel
Tiny (1Kb gzipped) JavaScript carousel with all the features most of us will ever need.
Stars: ✭ 87 (+8.75%)
Mutual labels:  vanilla-javascript
FFBackgroundParallax
Background Parallax is a simple example for parallax scrolling based on several UIScrollViews.
Stars: ✭ 83 (+3.75%)
Mutual labels:  parallax-scrolling

Perspective.js

Documentation

Demo

Parallax scrolling/hovering effect. And more.

Features

A standalone Javascript library to make dashing scrolling/hovering effects. Any CSS properties with number values are supported.

Installation

npm

npm install perspective.js
# or
yarn add perspective.js

Then in your project

import { Scroll, Hover } from 'perspective.js'

CDN

<script type="text/javascript" src="//unpkg.com/perspective.js/lib/perspective.js"></script>

Once loaded, Perspective.js will register perspective to the window object, and it has two attributes: Scroll and Hover

Usage

Parallax scroll

// using npm
import { Scroll } from 'perspective.js'

// using CDN
const Scroll = perspective.Scroll

new Scroll('#wrap', {
  stages: [{
    id: 'basic',
    scrollNumber: 60,
    transition: 0,
    items: [{
      id: 'slow',
      effects: [{
        property: 'transform',
        start: 'translateY(0px)',
        end: 'translateY(-50px)'
      }]
    }, {
      id: 'fast',
      effects: [{
        property: 'transform',
        start: 'translateY(0px)',
        end: 'translateY(-180px)'
      }]
    }]
  }]
})

Parallax translate

// using npm
import { Hover } from 'perspective.js'

// using CDN
const Hover = perspective.Hover

new Hover('#wrap', {
  max: 0,
  scale: 1.1,
  perspective: 500,
  layers: [{
    multiple: 0.1,
    reverseTranslate: true
  }, {
    multiple: 0.3,
    reverseTranslate: true
  }]
})

Parallax tilt

// using npm
import { Hover } from 'perspective.js'

// using CDN
const Hover = perspective.Hover

new Hover('#wrap', {
  max: 400,
  scale: 1.1,
  perspective: 500
})

Roadmap

  • Mobile support

Inspirations

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].