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

The library throws an error when the image variable passed to the config is not called image #1

Closed
evaristocuesta opened this issue Jul 14, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@evaristocuesta
Copy link
Owner

const imagejh = document.getElementById('image-jh');
window.onload = function initialize() {
    pict2pix.animate({
        image: imagejh,
        numberOfParticles: 3000,
        horizontalSpeed: -1,
        verticalSpeed: -1,
        particleType: 'twisted-particle'
    });
}

This code throws an error because the variable passed to image is called imagejh. It only works when the image variable is called image.

@evaristocuesta evaristocuesta self-assigned this Jul 14, 2021
@evaristocuesta evaristocuesta added the bug Something isn't working label Jul 14, 2021
evaristocuesta added a commit that referenced this issue Jul 14, 2021
@evaristocuesta
Copy link
Owner Author

Opened to update the README.md and the example to generate the new release v0.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant