Fixed issue with chrome scroll bug with position fixed

This commit is contained in:
Alex Fox
2020-11-10 20:05:48 +00:00
parent 5c3ab529bf
commit 322ee2726b
8 changed files with 810 additions and 700 deletions

View File

@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2019 Alex Fox
Copyright (c) 2020 Alex Fox
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@@ -38,6 +38,5 @@
</style>
<body>
<div class="square lax lax_preset_spin-400-360 lax_preset_flipX">
</div>
<div class="square lax lax_preset_spin-400-360 lax_preset_flipX"></div>
</body>

View File

@@ -294,9 +294,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
filter: ''
};
var translate3dValues = {
translateX: 0,
translateY: 0,
translateZ: 0
translateX: 0.00001,
translateY: 0.00001,
translateZ: 0.00001
};
Object.keys(styles).forEach(function (key) {
var val = styles[key];

2
lib/lax.min.js vendored

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@@ -7,9 +7,11 @@
"devDependencies": {
"@babel/cli": "^7.12.1",
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1"
"@babel/plugin-proposal-class-properties": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"uglify-js": "^3.9.4"
},
"description": "Simple & light weight (4kb minified & zipped) vanilla javascript plugin to create smooth & beautiful animations when you scrolllll! Harness the power of the most intuitive interaction and make your websites come alive!",
"description": "Simple & lightweight (<4kb gzipped) vanilla JavaScript plugin to create smooth & beautiful animations when you scrolllll! Harness the power of the most intuitive interaction and make your websites come alive!",
"license": "MIT",
"author": "alexfoxy@gmail.com",
"repository": {
@@ -26,8 +28,5 @@
"css",
"html"
],
"dependencies": {
"@babel/plugin-proposal-class-properties": "^7.12.1",
"uglify-js": "^3.9.4"
}
"dependencies": {}
}

View File

@@ -242,9 +242,9 @@
}
const translate3dValues = {
translateX: 0,
translateY: 0,
translateZ: 0
translateX: 0.00001,
translateY: 0.00001,
translateZ: 0.00001
}
Object.keys(styles).forEach((key) => {

1480
yarn.lock

File diff suppressed because it is too large Load Diff