2.1.0 • Published 3 years ago
prevent-orientation v2.1.0
prevent-orientation
Prevent orientation mode on mobile device
Installation
$ yarn add prevent-orientation
or
<script src="//unpkg.com/prevent-orientation"></script>
Usage
import {PreventOrientation} from 'prevent-orientation';
// Prevent to portrait orientation
new PreventOrientation().preventPortrait();
// Prevent to landscape orientation
new PreventOrientation().preventLandscape();
Customize
new PreventOrientation({
text: 'Sorry, this device orientation is not supported',
color: 'rgb(90, 90, 90)',
background:
'linear-gradient(to right, rgb(255, 175, 189), rgb(255, 195, 160))',
fontSize: '1.2rem',
}).preventOrientationToAngle(0);
License
MIT
1.2.0
3 years ago
1.1.0
3 years ago
1.6.4
3 years ago
1.6.3
3 years ago
1.6.2
3 years ago
1.7.0
3 years ago
1.6.1
3 years ago
1.6.0
3 years ago
1.5.0
3 years ago
1.4.0
3 years ago
1.3.0
3 years ago
1.6.5
3 years ago
2.1.0
3 years ago
2.0.0
3 years ago
0.2.0
5 years ago
1.0.3
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.1.0
6 years ago