Rotatev2.1.0

Tiny custom rotate event binder
#mobile #portrait #landscape

Getting Started

Browser support

iOS 7+ and Android 2.1+ (except 3.x)

Quick steps to use:

Load files or import library

ES5

<script src="//naver.github.io/egjs-rotate/release/latest/dist/rotate.min.js"></script>

ES6+
import Rotate from "@egjs/rotate";

Initialize

var handler = function(event, info) {
    ...
};

// bind rotate event
eg.rotate.on(handler);

// unbind rotate event
eg.rotate.off(handler);

// or unbind all the rotate event binds
eg.rotate.off();