Giter Site home page Giter Site logo

Speeding up the Pop animation about floaty HOT 2 CLOSED

kciter avatar kciter commented on August 15, 2024
Speeding up the Pop animation

from floaty.

Comments (2)

yigitserin avatar yigitserin commented on August 15, 2024 1

Thanks for the reply, I managed to speed up to animation by reducing the delay to 0.05 from 0.1 here:

private func popAnimationWithOpen() {
    var itemHeight: CGFloat = 0
    var delay = 0.0
    for item in items {
        if item.hidden == true { continue }
        itemHeight += item.size + itemSpace
        item.layer.transform = CATransform3DMakeScale(1, 1, 1)
        item.frame.origin.y = -itemHeight
        item.layer.transform = CATransform3DMakeScale(0.4, 0.4, 1)
        UIView.animateWithDuration(0.3, delay: delay,
                                   usingSpringWithDamping: 0.55,
                                   initialSpringVelocity: 0.3,
                                   options: [.CurveEaseInOut], animations: { () -> Void in
                                    item.layer.transform = CATransform3DMakeScale(1, 1, 1)
                                    item.alpha = 1
            }, completion: nil)

        delay += 0.05
    }
}

from floaty.

kciter avatar kciter commented on August 15, 2024

I'm sorry for my late reply.
Now you can not. If you want, pull-request to me.

from floaty.

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.