多图像滑块
苹果的 iMac 页面上有一个令人惊叹的滑块。
这是标准图像滑块,但看起来它利用了在单张幻灯片中不同时间出现的多个图像。
有人有一个教程的链接来解释这是如何完成的吗?这种效果有一些令人惊叹的因素。
Apple's iMac page has an amazing slider on it.
It's your standard image slider, but it looks like it utilizes multiple images that appear at different times in a single slide.
Anyone have a link to a tutorial that explains how this was done? The effect has some serious wow factor.
Here's the link: http://www.apple.com/imac/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
滑块注意事项:
background-position
一次显示图像的适当部分。上一张/下一张图片的注释:
放在侧面,并将实际内容包裹在另一个标签中。 Apple 使用a
为此。我可能会使用
。使用
opacity
使其不可见。标签需要覆盖很大的区域。您可能希望它是容器高度的 100%,并且足够宽以便鼠标能够找到它。
next
,但随后使用background-image
并移动了使用text-indent
将文本移出屏幕。上时,使内部标记可见。为此,您将再次使用
opacity
。。许多幻灯片插件都内置了此功能。如果您使用 jQuery,我推荐cycle 插件。
Notes on sliders:
background-position
to display the proper portion of the image at one time.Notes on the previous/next images:
<a>
on the side and have the actual contents wrapped in another tag. Apple used a<b>
for this. I'd probably use a<span>
. Useopacity
to make it invisible.<a>
tag needs to cover a large area. You probably want to have it be 100% of the containers height, and be wide enough for the mouse to find it.next
for the text, but then uses abackground-image
and shifts the text off-screen withtext-indent
.<a>
. Again, you'll useopacity
for this.<a>
at all. This comes built-in to many slideshow plug-ins. If you are using jQuery, I recommend the cycle plugin.AnythingSlider是迄今为止我发现的最接近苹果滑块的东西。它独立地为每张幻灯片的元素设置动画。查看 FX 演示。
http://proloser.github.com/AnythingSlider/demos.html
AnythingSlider is the closest thing I have found to apple's slider so far. It animates elements of each slide independently. Check out the FX demo.
http://proloser.github.com/AnythingSlider/demos.html