Comments (4)
Sorry, I just saw the README TODO content, expect to give a perfect solution
from animatedcollectionviewlayout.
Hey @broccolii, this is a good question! I'm also trying to find the best way to support such scenario.
Two cases pop up in my mind:
- Each item (including the spacing between items) takes a fullscreen space.
- Each item (including the spacing between items) takes part of the screen. So you'd have two or more visible items at the same time.
In the first scenario, it's still reasonable to have animations such as CrossFade or ZoomInOut but not Cube for instance. However, the second scenario makes even CrossFade inappropriate. (Cards might still be alright though.)
What type of scenario are you looking for?
from animatedcollectionviewlayout.
@KelvinJin
I see FSPagerViewTransformer in FSPagerView
when found to be a good solution, so I made some changes, honestly I think the definition of the parameters here is not easy to understand, so I mentioned this in the pull request. Although it is not a good solution, but it is useful
from animatedcollectionviewlayout.
@broccolii Yeah, for a complicated animation, the parameters will be hard to define. IMHO, the library should give you the ability to customise the animation by providing enough contexts.
I'm planning to add more context information into the UICollectionViewLayoutAttributes
. For instance, the scroll direction, the distance between the centre of the item and the centre of the collectionView, the distance between the start (depending on the scroll direction) of the item and the start of the collectionView and the distance between the end of the item and the end of the collectionView. With all the information, you can create your own animations such as slide in when you scroll the list.
from animatedcollectionviewlayout.
Related Issues (20)
- How do we add spacing between cells for parallax effect? HOT 3
- How to make parallax cell not effect text? HOT 3
- How to adjust collectionView Cell size appropriately when in landscape? HOT 6
- Hello, I would like to ask how to write the following layout.
- The cell is set to the screen width, and the current cell position is constantly shifted
- RotateInOut - Cells are not vertical @ center
- CubeAttributesAnimator screen display is strange. HOT 8
- Blinking parallax on iPhone 8 plus HOT 2
- RTL Support HOT 1
- Layout wrong on iOS 10
- Is it possible with infinite scrolling?
- Scroll by button tap HOT 1
- iOS 14 break CubeLayout HOT 9
- Having trouble with Cube Animator w/ programmatic cells HOT 10
- Cell scroll with scrollToItem does not work HOT 4
- index path is not corrrect.
- On vertical scroll with sections, unexpected behaviour. Cells appear in front of others
- CrossFade Animation alpha is not changed to 1.0
- Importing this library has no effect
- Automatic page jumping would be better
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animatedcollectionviewlayout.