如何使用 mootools 创建漂亮的淡入淡出图像?
我正在为一位摄影师创建一个网站,他想要在他的图像上进行精细的淡入淡出。我排除了 flash 作为解决方案,并希望使用 mootools fx 的那些精美效果。但问题是我对 javascript 真的很糟糕。因此,如果有人能给我一个简单的解决方案,在加载单个图像时以及加载图像时淡入淡出,我会非常高兴。我知道有很多不同的人都有这个。但问题是我不知道代码是如何工作的,即使它是一个完整的解决方案。所以最重要的是。如果有人有时间解释每一行代码的作用,我将不胜感激。谢谢!
I´m creating a website for a photographer who would like a fine fadein on his images. I have excluded flash as a solution and would like to use those fine-looking effects of mootools fx. But the problem is that I'm really lousy when it comes to javascript. So if anyone could give me an easy solution for fading in one single image onload and when the image is loaded I would be really happy. I know there is a lot of different people out there who have this. But the problem is that i don't know how the code works even if it is a complete solution. So most important. If anyone has got the time to explain what every single line of code does i would be more than grateful. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简单的淡入肯定是人们能想象到的最简单的事情:
工作示例: http://jsfiddle.net/ oskar/RNeS5/(HTML、CSS、MooTools)
A simple fade-in is surely the simplest thing one can imagined:
Working example: http://jsfiddle.net/oskar/RNeS5/ (HTML, CSS, MooTools)