Code Monkey home page Code Monkey logo

Comments (4)

broccolii avatar broccolii commented on May 28, 2024

Sorry, I just saw the README TODO content, expect to give a perfect solution

from animatedcollectionviewlayout.

KelvinJin avatar KelvinJin commented on May 28, 2024

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.

broccolii avatar broccolii commented on May 28, 2024

@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.

KelvinJin avatar KelvinJin commented on May 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.