You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@TemaSM I moved the conversation to the new issue.
Could you provide additional information about settings, jQuery version, and whether you've attached platform library.
@JB1905 sorry for late reply, missed notifications.
jQuery: 3.4.1
universal-tilt.js: 2.0.4-2.0.5
Didn't attached platform as dependency into page before attaching universal-tilt.js, because there was no info about it in README.
So, 2.0.6 fixed problem and base option works just fine as it was working in 2.0.3.
But, please pay attention to maybe another issue with base option.
If we set base option value to be window, it produces errors with addEventListener:
and if we change value to 'window' (with quotes) it works without any problem.
Should we improve this conditional?:
I think, that this situation a bit confusing.
Because for example at my first time using universal-tilt.js I was thinking
"Available options" for base means selector for element, but afterwards it became clear - available options ('element', 'window') are just const strings, like enums, not examples of selectors.
Thanks for feedback.
I'm working on version 2.1. The base option will be rebuilt (new values: window, all DOM elements on website). The update will be available next month. Preview of changes in v2.1
@JB1905
Btw it probably produces a bug, when
base
option is set. With 2.0.3 andbase
works just fine.Problem is here:
Originally posted by @TemaSM in #38 (comment)
The text was updated successfully, but these errors were encountered: