简体   繁体   中英

Reset CSS3 transforms with jQuery?

I need to set a css3 transform:scale() back to it's original value.

See this example:

http://jsfiddle.net/Z2TNw/

It works on click, but not when I hover out..

I also tried setting to scale(1) but that doesn't help either..

Any ideas?

In your second hover callback, you are still using inValue . If you switch it to use outValue , like this updated fiddle: http://jsfiddle.net/Z2TNw/1/ It works as expected.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM