jquery.ripples | Add a water ripple effect to your background using WebGL | Graphics library
kandi X-RAY | jquery.ripples Summary
kandi X-RAY | jquery.ripples Summary
By the powers of WebGL, add a layer of water to your HTML elements which will ripple by cursor interaction!. Important: this plugin requires the WebGL extension OES_texture_float (and OES_texture_float_linear for a better effect) and works only with same-origin images (see [this link] for more information on using cross-origin requested images). Click [here] for a demo and to see how to use it.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Loads configuration from Canvas Object .
- Translates the background position according to the background position
- creates a program
- Creates a config object
- create an image data
- Drop pointer event handler .
- Compile a shader
- Extracts the value from a url .
- Jump to one step
- Bind a texture
jquery.ripples Key Features
jquery.ripples Examples and Code Snippets
Community Discussions
Trending Discussions on jquery.ripples
QUESTION
I'm trying to get the JQuery Ripple effect to work on a container within my page (#middle-container) but for some reason its not working and I've looked at resources and I'm pretty sure I'm using the right code, but I'm making it in Squarespace so I'm not sure if that makes a notable difference.
Here is a link to the website: Solace
The password is: solace (private until I've finished with it)
Below is a direct snippet of my code:
...ANSWER
Answered 2021-Mar-03 at 13:47It looks like the two scripts (the one for JQuery and the one for Ripples) are not present on the home page of the site in question.
It looks like you added them to your /home
page here, but that page is not set as your actual home page. You may be aware of that, but thought it was worth mentioning. Because I work with Squarespace a lot, I knew to look for that, but others here on StackOverflow would not know to go to /home
to see what you're referring to. Keep that in mind.
In any case, to fix the issue, move your JavaScript code (from the first snippet in your question above) to Footer code injection instead of Header code injection. It must be in Footer code injection because, otherwise, it executes before your .ripples
element is present, and so therefore the code does nothing.
So, move it to Footer code injection so that, when it runs, the element with class="ripples"
is present.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jquery.ripples
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page