-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to stretch the animation to cover entire screen ? #10
Comments
That's odd. There's a element that should resize to the size of the screen, this is where the particles are drawn. Go into your browser debugging tools and make sure the canvas is sized correctly, ie: the width and height style properties are being set correctly. If they're not, should be pretty easy to find where they're getting set and why they're not updating. I can't remember exactly where that's happening sorry. |
The canvas width and height is getting set properly but I wasn't able to figure out why isn't the animation drawn on entire canvas. The issue is in the demo url - http://animatedenvironmentlayer.azurewebsites.net/index.html |
Oh right, I don't get the problem when I view the demo page. I've tried it in Chrome and Firefox. What browser are you using? |
@Shruthi48 did you solved this issue? |
This was related to window.devicePixelRatio being greater than 1. Have catered for this in the latest commit. |
Hi ,
At the moment the animation is visible only on part of the screen , how can I stretch it to show the animation on the entire screen ?
The text was updated successfully, but these errors were encountered: