Skip to content

How to refire on orientation change / canvas rotate? #1

Description

@Creativenauts

Hello there. I just started toying around with this plugin. Please bare with me as I am just getting into javascript. I notice that when I do canvas orientation change that many times the wheninview events do not fire.

I'm using this code from the example project which works perfect except when I rotate canvas on a mobile device.

;
$(function() {
    var WhenInViewport = window.WhenInViewport;

    $('.brick').whenInViewport(function($brick) {
        $brick.addClass('animate');
    });
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions