如何实现具有放大和透明效果的图像滚动机制?
我想实现一个如下图所示的组件,并且我想了解它是如何完成的,但我无法在谷歌上搜索类似的实现,因为我不知道如何描述它(也许是因为英语不是我的母语)。
你们能指导我找到类似的实现吗?我已经找到了一些 coverflow 库,但这并不完全是 coverflow 实现。当用户滚动时,该图像会放大并改变图像的透明度。
提前谢谢
I want to implement a component like the one in the images below and I want to learn how it's done, but I couldn't search google to find a similar implementation because I couldn't know how to describe this (maybe because English is not my mother tongue).
Can you guys guide me into finding a similar implementation? I already found some coverflow libraries, but this isn't exactly a coverflow implementation. This one magnifies and changes the transparency of the images as the user scrolls.
Thx in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)
如果我要这样做,我会这样做
将每个图像添加到每个 UIImageView
2.
[imageView1 setAlpha:0.3];
[imageView1 setOpaque:NO];
[imageView2 setAlpha:0.3];
[imageView2 setOpaque:NO];
…对所有这些都这样做
,或者简单地将此代码放入函数中并传递 uiimageview
3。然后添加所有 UIImageView 对象以从后面查看。
if i came to do this i will do like this
add each image to each UIImageView
2.
[imageView1 setAlpha:0.3];
[imageView1 setOpaque:NO];
[imageView2 setAlpha:0.3];
[imageView2 setOpaque:NO];
.........like this do for all of them
or simply put this code in function and pass uiimageview
3.then add all UIImageView objects to view from back.