Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit af6e2cc

Browse filesBrowse files
committed
revert
1 parent e4b233d commit af6e2cc
Copy full SHA for af6e2cc

File tree

Expand file treeCollapse file tree

2 files changed

+4
-7
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-7
lines changed

‎package.json

Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rallax.js",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "Dead-simple parallax scrolling.",
55
"main": "dist/rallax.js",
66
"license": "MIT",

‎src/rallax.js

Copy file name to clipboardExpand all lines: src/rallax.js
+3-6Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,9 @@ class RallaxObj {
7979
}
8080

8181
move() {
82-
const translation = this.getTranslation()
83-
84-
Object.assign(this.target.style, {
85-
transform: `translateY(${translation}px)`,
86-
"-webkit-transform": `translateY(${translation}px)`
87-
})
82+
this.target
83+
.style
84+
.transform = `translateY(${this.getTranslation()}px)`
8885
}
8986
}
9087

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.