不工作mousemove&mouseleave in(倾斜图像)
not work mousemove & mouseleave in (tilt images)
我正在倾斜(倾斜图像)但不起作用Css和js将连接到站点
视图源:http://tympanus.net/Development/ImageTiltEffect/js/tiltfx.js视图源:http://tympanus.net/Development/ImageTiltEffect/css/tilteffect.css和我的html代码:
<div class="Testj3_block_content">
<div class="customtilt">
<div class="tilt__back" dir="ltr" style="background-image: url('/Testj3/images/ImageTiltEffect/3.jpg');"> </div>
<div class="tilt__front" style="background-image: url('/Testj3/images/ImageTiltEffect/3.jpg'); opacity: 0.5; transform: perspective(500px) translate3d(0px, 0px, 0px) rotate3d(1, 1, 1, 0deg);"> </div>
<div class="tilt__front" style="background-image: url('/Testj3/images/ImageTiltEffect/3.jpg'); opacity: 0.6; transform: perspective(500px) translate3d(0px, 0px, 0px) rotate3d(1, 1, 1, 0deg);"> </div></div>
</div>
源代码请引导我感谢
只需更改
translate3d(0px, 0px, 0px) // yours, no translation
translate3d(100px, 50px, 50px) // with translation
rotate3d(1, 1, 1, 0) // yours, no degrees
rotate3d(1, 1, 1, 50deg) // with degrees
您的css语法是正确的,您只需将转换设置为零像素和零度。
以下是css33d转换的基本文档,它将帮助您
相关文章:
- Node.js's Buffer.writeFloatBE in Javascript
- Setting default onclick behavior for <img> tag in gene
- Lucene Search in Alfresco
- grep in JQuery to C#
- write HTML in JavaScript
- jQuery setTimeOut: in for-loop
- SetTimeout and clearTimeout in Javascript
- lightbox in html 5 and javascript
- JS中类似视差的元素倾斜
- HTMLInputElement in IE7
- Mongodb$in以与数组中相同的顺序获取结果
- element.dataset in Internet Explorer
- jQuery parent() in table
- Instagram oauth flow in angularjs
- In循环的In运算符前后
- 如何使用for in循环在javascript中显示对象中的对象
- Jquery change onchange in onload
- 重构 jQuery in JS 问题
- strongloop script.js run find in before delete方法:如何同步运行异步方法
- 不工作mousemove&mouseleave in(倾斜图像)