Giter Site home page Giter Site logo

zachstronaut / jquery-css-transform Goto Github PK

View Code? Open in Web Editor NEW
115.0 115.0 69.0 205 KB

A monkey patch for jQuery 1.3.1+ that adds some cross browser support for 'transform' property to css() method.

Home Page: http://www.zachstronaut.com/posts/2009/02/22/jquery-patch-css-transform.html

jquery-css-transform's People

Contributors

zachstronaut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

jquery-css-transform's Issues

Applying a transform as part of a map.

This works:
$(".active").css("transform", "scale(.4)")

This doesn't:
$(".active").css({transform: "scale(.4)"})

To resolve it, I inserted the following at line 59:
if (typeof arg == 'object' && $.props[c_transform] != c_transform)
arg[$.props[c_transform]] = arg[c_transform];

I created a string called c_transform to represent 'transform', to aid compression.

Rich

empty string on get css transform on first attempt

Hi,
I tried to get a div current transform using $('#mydiv').css('transform') and I get an empty string, but I know that this div has a transform: rotate(-1deg) css style applied via class reference.

If I set a rotation via $('#mydiv').css('transform', 'rotation(-1deg)') I can now read that value via the getter.
Any ideas?

I test on Mac Lion - Safari 5.1.5

Incompatible with jQuery 1.6

Hey just wanted to let you know.

The attribute library code was rewritten in jQuery so that $.props is no longer defined, breaking rotate3Di from working.

Would be greatly appreciated if you had any idea of a solve for this.

Broken in FF 16.0.1+

Firefox 16.0.1 and up has added support for the non-prefixed 'transition' property.

Transform is not applied in IE9 RC

The transform doesn't get applied in IE9 RC. I tracked it down to to IE9 attempting to set the property as MozTransform.

I fixed it it by switching the order of checking the various vendor prefixes. e.g.

var properties = ['transform', 'WebkitTransform', 'MozTransform', 'msTransform', 'OTransform'];

to

var properties = ['transform', 'WebkitTransform', 'msTransform', 'MozTransform', 'OTransform'];

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.