🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

css-viewport

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-viewport

Computes the perspective for a containefied field of view

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

cssViewport

Computes the perspective for a containefied field of view

Example

// Create a viewport with fovy PI/2
// and update body on window resize

var Viewport = require('css-viewport'),
    v = new Viewport(Math.PI/2);
window.onresize = updatePerspective;
updatePerspective();

function updatePerspective() {
    v.update(document.body);
};

Installation

npm install css-viewport

Contributors

  • Matt-Esch

MIT Licenced

Keywords

css

FAQs

Package last updated on 07 Jan 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts