Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

annie

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

annie - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

annie.js

@@ -96,3 +96,3 @@ (function (root, factory) {

// based on stackoverflow.com/questions/5661671/detecting-transform-translate3d-support/12621264#12621264
annie.supports3d = (function(){
annie['3d'] = (function(){

@@ -99,0 +99,0 @@ var transform = annie.transform;

@@ -1,1 +0,1 @@

!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define([],b):a.annie=b()}(this,function(){"use strict";function a(a,b){return function(){a.apply(b,[].slice.call(arguments))}}function b(a,b){return(a.currentStyle||getComputedStyle(a))[b]}var c=document,d=navigator,e=window,f={};return f.ie=d.appVersion.search("MSIE")>-1?parseInt(d.appVersion.slice(22,26),10):!1,f.performance=!(!e.performance||!e.performance.now),f.vendor=function(){if(f.ie&&f.ie<9)return"ms";var a,b,d,e=" O ms Moz Webkit".split(" "),g=c.body.style;for(a=e.length;a--;)if(b=e[a],d=""!==b?b+"Transform":"transform",void 0!==g[d])return b}(),f.requestAnimationFrame=a(e.requestAnimationFrame||e[f.vendor+"RequestAnimationFrame"]||function(){var a=0;return function(b){var c=+new Date,d=Math.max(0,16-(c-a)),e=setTimeout(function(){b(c+d)},d);return a=c+d,e}}(),e),f.cancelAnimationFrame=a(e.cancelAnimationFrame||e.cancelRequestAnimationFrame||e[f.vendor+"CancelAnimationFrame"]||e[f.vendor+"CancelRequestAnimationFrame"]||clearTimeout,e),f.transform=function(){var a=f.vendor+"Transform";return void 0!==c.body.style[a]?a:void 0}(),f.supports3d=function(){var a=f.transform;if(!a)return!1;var d=c.body,e=c.createElement("p");e.style[a]="translate3d(1px,1px,1px)",d.appendChild(e);var g=b(e,a);return d.removeChild(e),void 0!==g&&"none"!==g&&g.length>0}(),f});
!function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define([],b):a.annie=b()}(this,function(){"use strict";function a(a,b){return function(){a.apply(b,[].slice.call(arguments))}}function b(a,b){return(a.currentStyle||getComputedStyle(a))[b]}var c=document,d=navigator,e=window,f={};return f.ie=d.appVersion.search("MSIE")>-1?parseInt(d.appVersion.slice(22,26),10):!1,f.performance=!(!e.performance||!e.performance.now),f.vendor=function(){if(f.ie&&f.ie<9)return"ms";var a,b,d,e=" O ms Moz Webkit".split(" "),g=c.body.style;for(a=e.length;a--;)if(b=e[a],d=""!==b?b+"Transform":"transform",void 0!==g[d])return b}(),f.requestAnimationFrame=a(e.requestAnimationFrame||e[f.vendor+"RequestAnimationFrame"]||function(){var a=0;return function(b){var c=+new Date,d=Math.max(0,16-(c-a)),e=setTimeout(function(){b(c+d)},d);return a=c+d,e}}(),e),f.cancelAnimationFrame=a(e.cancelAnimationFrame||e.cancelRequestAnimationFrame||e[f.vendor+"CancelAnimationFrame"]||e[f.vendor+"CancelRequestAnimationFrame"]||clearTimeout,e),f.transform=function(){var a=f.vendor+"Transform";return void 0!==c.body.style[a]?a:void 0}(),f["3d"]=function(){var a=f.transform;if(!a)return!1;var d=c.body,e=c.createElement("p");e.style[a]="translate3d(1px,1px,1px)",d.appendChild(e);var g=b(e,a);return d.removeChild(e),void 0!==g&&"none"!==g&&g.length>0}(),f});
{
"name": "annie",
"version": "0.1.2",
"description": "A tiny (709 bytes gzipped) library for authoring cross-browser animations",
"version": "0.1.3",
"description": "A super tiny library for authoring cross-browser animations",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

# annie
A tiny (709 bytes gzipped) library for authoring cross-browser animations.
A super tiny library for authoring cross-browser animations.

@@ -13,3 +13,2 @@ ## huh?

ie: Number|false // internet explorer version (or false)
performance: Boolean // browser supports window.performance
vendor: String // webkit, moz, ie, or o

@@ -19,3 +18,4 @@ requestAnimationFrame: Function // requestAnimationFrame, polyfilled if necessary

transform: String|undefined // CSS transform property, if supported
supports3d: Boolean // Whether or not browser supports 3D CSS transforms
3d: Boolean // Whether or not browser supports 3D CSS transforms
performance: Boolean // browser supports window.performance
}

@@ -27,3 +27,3 @@ ```

### modern browsers
| browser | platform | vendor | ie | performance | transform | supports3d |
| browser | platform | vendor | ie | performance | transform | 3d |
|-----------------------|-----------|-----------|-----------|-------------------|-------------------|---------------|

@@ -39,3 +39,3 @@ | chrome 29 | osx | `Webkit` | `false` | `true` | `WebkitTransform` | `true` |

### legacy browsers
| browser | platform | vendor | ie | performance | transform | supports3d |
| browser | platform | vendor | ie | performance | transform | 3d |
|-----------------------|-----------|-----------|-----------|-------------------|-------------------|---------------|

@@ -42,0 +42,0 @@ | firefox 12 | windows | `Moz` | `false` | `false` | `MozTransform` | `true` |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc