GithubHelp home page GithubHelp logo

Comments (4)

sirxemic avatar sirxemic commented on August 23, 2024

You'll need to be a little bit more specific. The canvas is resized to its parent when the window is resized, or is supposed to, at least. Could you show me the HTML and the CSS you are using for the element you are applying the effect to?

from jquery.ripples.

AminulBD avatar AminulBD commented on August 23, 2024

Oh, Later I get that it's working fine on window resize event. But, If the element has transition property then this will not work great.

Here you can get live example: https://codepen.io/aminul/full/WjxoyK/

Resize window (Height) then you will see what's is going there.

from jquery.ripples.

sirxemic avatar sirxemic commented on August 23, 2024

The issue in that example isn't the window resize, it's that the canvas element doesn't resize when its parent's CSS is updated.

Here is an example how you can fix it with a workaround:
https://codepen.io/anon/pen/Vbjrjz

from jquery.ripples.

AminulBD avatar AminulBD commented on August 23, 2024

Owao! Simple. But, I didn't understand this simple thing before. 💯

from jquery.ripples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.