Mootools morph - div 覆盖图像的问题
不知道是否有人可以对此有所了解
http://jsfiddle.net/orbitalmedia/ZrxBb/7/< /a>
基本上我正在尝试在图像上创建盲效果。 addClass 或toggleClass 能够应用样式,但我试图改变叠加层,以便它在图像上产生动画效果。
Ta
编辑..
这可行,但我试图使用 morph 和 css 类
$('span_2_0').tween('width', 150);完成同样的事情
Wonder if anyone could shed some light on this
http://jsfiddle.net/orbitalmedia/ZrxBb/7/
Basically I'm trying to create a blind effect over an image. addClass or toggleClass is able to apply the style but I'm trying to morph the overlay so it animates over the image.
Ta
Edit..
This works but I'm trying to accomplish the same thing using morph and a css class
$('span_2_0').tween('width', 150);
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当你执行
.morph(".classname")
时,它只会采用它可以变形的属性并应用它们,即颜色、大小等,而不是 z-index 或位置。无论如何,您需要 .在类名之前,然后预先设置基本 css 属性:
不要使用颜色名称。使用可以变形的十六进制值。
http://jsfiddle.net/ZrxBb/12/
when you do
.morph(".classname")
, it will only take the properties it CAN morph and apply them, i.e. color, size etc. not z-index or position.in any case, you need the . before the classname and then set the base css properties beforehand:
do not use color names. use hex values that can be morphed.
http://jsfiddle.net/ZrxBb/12/