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

Unable to read Container #6

Open
keiranlovett opened this issue Mar 14, 2014 · 0 comments
Open

Unable to read Container #6

keiranlovett opened this issue Mar 14, 2014 · 0 comments

Comments

@keiranlovett
Copy link

<div class="test"></div>

<script src="../photoTilt.js"></script>
<script>
    (function() {
        var photoTilt = new PhotoTilt({
            url:'http://farm5.staticflickr.com/4016/4251578904_f13592585c_b.jpg',
            lowResUrl: 'http://farm5.staticflickr.com/4016/4251578904_f13592585c_m.jpg',
            maxTilt: 12,
            container: '.test'  //optional, defaults to body

        });
    })();
</script>

Uncaught TypeError: Cannot read property 'width' of null - line 200.

Error when trying to assign a div to the container, tried multiple variations but still occurs.

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

1 participant