Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/putnamn21/jquery-animate3d
jQuery plugin that gives elements a 3d mouse over effect!
https://github.com/putnamn21/jquery-animate3d
Last synced: 2 months ago
JSON representation
jQuery plugin that gives elements a 3d mouse over effect!
- Host: GitHub
- URL: https://github.com/putnamn21/jquery-animate3d
- Owner: putnamn21
- License: mit
- Created: 2016-06-13T17:08:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-23T23:36:49.000Z (over 8 years ago)
- Last Synced: 2024-08-02T12:23:09.647Z (5 months ago)
- Language: CSS
- Homepage:
- Size: 338 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- fucking-awesome-web-effect - jquery-animate3d - jQuery plugin that gives elements a 3d mouse over effect (🚀 A series of exquisite and compact web page cool effects / Mouse Effect)
- awesome-web-effect - jquery-animate3d - jQuery plugin that gives elements a 3d mouse over effect (🚀 A series of exquisite and compact web page cool effects / Mouse Effect)
README
# 3dAnimate
3dAnimate is a jQuery plugin that allows you to give any portion of your website a 3d mouse over effect.
Demo - [animate3d](http://nathan-putnam.me/animate3d)
## Get Started
First download and load the 3d js file after jQuery and before your script.
Next, call animate3d on an element or group of elements.
```html
```
```javascript
$('element').animate3d({});
```
```html```
Its that easy! Passing in an empty object uses all of the default settings of 3dAnimate. You can customize by passing in any of the following {key:value} pairs. Shown below are the default values.```javascript
$('element').animate3d({
perspective: 1000,
distance: 50,
rotation: 0.5,
startX: 0,
startY: 0
});
```
## ExplanationGo to [animate3d](http://nathan-putnam.me/animate3d) for a live demo to really see how Animate3d works!
The element you call Animate3d on is the 'canvas', and each child element a 3d layer. When you mouse over the element you will see the perspecive change and each child element will appear closer to you than the last.
Simply place and position the child-elements how you want them to look, without using the transform css property (thats the one the animate3d uses to give its effect).
#### Perspective
Number greater than 0. Default is 1000.
- Sets the perspective on the elementSee w3s explanation - [Perspective](http://www.w3schools.com/cssref/css3_pr_perspective.asp)
#### Distance
Number greater than 0. Default is 50.
- Distance controls the perceived space between layers#### Rotation
Number between 0 and 1. Default is 0.5.
- Rotation controls how much the element is tilted during mouse over. If rotation is at 1 the element will tilt 90 degrees with the mouse at the edge of the element.#### StartX
Number between -1 and 1. Default is 0.
- Sets the default view of the element tilted along the X axis#### StartY
Number between -1 and 1. Default is 0.
- Sets the default view of the element tilted along the Y axis