sirxemic / jquery.ripples

Add a water ripple effect to your background using WebGL.
https://sirxemic.github.io/jquery.ripples/
MIT License
1.07k stars 418 forks source link

Goes straight to `catch` without throwing any errors #62

Open FranCoulibaly opened 5 years ago

FranCoulibaly commented 5 years ago

HTML div class=" bg-image"></div> <div class="error"></div>

JS $(document).ready(function() { try { $('.bg-image').ripples({ resolution: 256, interactive: true, perturbance: 0.04, }); } catch (e) { $('.error').show().text(e); console.log("error"); } });

CSS .bg-image { height: 100%; background-image: url("../img/october-trix.jpg"); background-size: cover; }

Can anyone help? Its driving me insane!