Comments (6)
Any particular reason why you would want to disable it? It would require me to bloat the lib with code to detect mobile devices.
A more practical way would be to use media queries to display:none;
the js-tilt-glare-inner
element.
from tilt.js.
Thanks, thats a perfectly acceptable solution!
Cheers
from tilt.js.
I think it could be a good alternative having an options with "mobile: false" to ensure the "No CSS is needed" ;)
from tilt.js.
Dear mr winkey face,
I will not add this feature as it will ad unnecessary bloat.
from tilt.js.
No worries, I did my own thing. I made it in a couple of lines, allowing me to detect breakdown changes and destroying/initializing tilt.
By the way, it's a pretty cool library, thanks for your work. Sorry if you misunderstood my message, I just think it could help tons of beginners wanting your tilt with an eye on mobile performance.
Best regards
Mr ;)
from tilt.js.
No problem, you can always submit a pull request, I might accept if it's small and robust and doesn't add lots of bloat.
Thanks!
from tilt.js.
Related Issues (20)
- why paralax effect not work HOT 1
- Scrolling fast problem HOT 2
- Add effect to element from mouse over page HOT 4
- Lag in chrome based browsers for duration of the value of the speed option HOT 4
- transform: translateZ(20px) only activates when hover HOT 3
- Outzooming cause issue
- Targeting consecutive nested elements for parallax effect HOT 1
- Disable on Mobile HOT 1
- Uncaught TypeError: Cannot read property 'x' of undefined HOT 20
- Does tilt work with images HOT 1
- Mouse events wrong on documentation
- Accessibility concerns?
- Glare on images/svgs?
- test
- SVG Inner Elements
- transform: translateZ(20px); is apply before hover HOT 2
- What does maxTilt option do?
- Add just a little tilt
- Tilt effect isn't working on mobile HOT 1
- I donβt see a tilt on mobile
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tilt.js.