Skip to content
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

freezeframe.js should have a method to refresh calculations of DOM element #106

Open
eballeste opened this issue Sep 22, 2021 · 1 comment

Comments

@eballeste
Copy link

depending on user's viewport width, an asset that might be originally hidden from viewport, the freezeframe script will give it a width and height of 0. it would be great to be able to call some type of refresh method that correctly calculates the images dimensions if it ever becomes visible due to browser resizing.

@eballeste eballeste changed the title freezeframe.js should have a method to refresh calculations of dom element freezeframe.js should have a method to refresh calculations of DOM element Sep 22, 2021
@khalidabuhakmeh
Copy link

I am having the same issue. Some of my GIFs are originally hidden, and thus they get an incorrect width and height.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants