mirror of
https://github.com/micku7zu/vanilla-tilt.js
synced 2024-06-28 01:50:02 +02:00
Add file size
This commit is contained in:
parent
bfcd052766
commit
5830d047d3
|
@ -54,9 +54,9 @@ element.vanillaTilt.reset();
|
||||||
### Install
|
### Install
|
||||||
You can copy and include any of the following file:
|
You can copy and include any of the following file:
|
||||||
|
|
||||||
* dest/vanillaTilt.js
|
* dest/vanillaTilt.js ~ 6kb
|
||||||
* dest/vanillaTilt.min.js
|
* dest/vanillaTilt.min.js ~ 3.5kb
|
||||||
* dest/vanillaTilt.babel.js
|
* dest/vanillaTilt.babel.js ~ 8.5kb
|
||||||
* dest/vanillaTilt.babel.min.js
|
* dest/vanillaTilt.babel.min.js ~ 4.3kb
|
||||||
|
|
||||||
in your webiste.
|
in your webiste.
|
|
@ -6,8 +6,8 @@
|
||||||
*/
|
*/
|
||||||
"use strict";
|
"use strict";
|
||||||
(function (undefined) {
|
(function (undefined) {
|
||||||
class VanillaTilt {
|
|
||||||
|
|
||||||
|
class VanillaTilt {
|
||||||
constructor(element, settings = {}) {
|
constructor(element, settings = {}) {
|
||||||
if (!(element instanceof Node)) {
|
if (!(element instanceof Node)) {
|
||||||
throw("Can't initialize VanillaTilt because " + element + " is not a Node.");
|
throw("Can't initialize VanillaTilt because " + element + " is not a Node.");
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
*/
|
*/
|
||||||
"use strict";
|
"use strict";
|
||||||
(function (undefined) {
|
(function (undefined) {
|
||||||
class VanillaTilt {
|
|
||||||
|
|
||||||
|
class VanillaTilt {
|
||||||
constructor(element, settings = {}) {
|
constructor(element, settings = {}) {
|
||||||
if (!(element instanceof Node)) {
|
if (!(element instanceof Node)) {
|
||||||
throw("Can't initialize VanillaTilt because " + element + " is not a Node.");
|
throw("Can't initialize VanillaTilt because " + element + " is not a Node.");
|
||||||
|
|
Loading…
Reference in a new issue