Skip to content

Commit 1f2b013

Browse files
authored
Merge pull request #9 from JB1905/1-next
v1.2.0
2 parents b2b0d7d + 7d756eb commit 1f2b013

File tree

8 files changed

+139
-117
lines changed

8 files changed

+139
-117
lines changed

CHANGELOG.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
# universal-tilt.js Changelog
22

33
## Next v2
4-
#### Breaking Changes
5-
- improve plugin init process
6-
- mobile option improve (OS and platform)
7-
84
#### New Feature
95
- destroy method
106
- new callbacks: `onInit`, `onDestroy`
117

8+
#### Breaking Changes
9+
- improve plugin init process
10+
1211
## Next v1
1312
#### Bug Fix
1413
- fix animation performance
1514

15+
## 1.2.0 beta 1 / 1.2.0 (2018-10-15)
16+
#### Breaking Changes
17+
- replaced `mobile` option with `exclude` (disable tilt effect on selected user agents)
18+
19+
#### Bug Fix
20+
- fixed bug with tilt effect on devices with gyroscope
21+
1622
## 1.1.1 (2018-09-04)
1723
#### Documentation
1824
- updated README.md

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Name | Type | Default | Description | Available options
8282
-|-|-|-|-
8383
**position-base** | string | `element` | The surface from which the location of the mouse is captured | `element` or `window`
8484
**reset** | boolean | `true` | Enable/disable element position reset after mouseout | `true` *(enable)*, `false` *(disable)*
85-
**mobile** | boolean | `true` | Enable/disable tilt effect on mobile devices with gyroscope (tilt effect on touch is always enabled) | `true` *(enable)*, `false` *(disable)*
85+
**exclude** | RegExp | `null` | Disable tilt effect on selected user agents | e.g: <code>/(Mozilla&#124;iPad)/</code>
8686
**shine** | boolean | `false` | Add/remove shine effect on mouseover | `true` *(add)*, `false` *(remove)*
8787
**shine-opacity**<sup>1</sup> | number | `0` | Add/remove shine effect on mouseover | values >= `0` and <= `1`
8888
**shine-save**<sup>1</sup> | boolean | `false` | Save/reset shine effect on mouseout | `true` *(save)*, `false` *(reset)*

lib/universal-tilt.js

Lines changed: 47 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/universal-tilt.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/universal-tilt.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 55 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)