Results 1 to 4 of 4

Thread: Bounce effect on card layout possible?

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    209
    Answers
    4

    Default Bounce effect on card layout possible?

    Hi,

    I integrated a card layout with a reveal animation but would like to add a bounce animation so that the user knows he reached the beginning or end of the 'slideshow'. Is this possible? I tried to pass the argument bounces: true to the animation but it didn't work. I know this works in a carousel by default.

    Code:
    panel.animateActiveItem(num_id, { type: 'reveal', bounces : true, direction: event.direction });
    It is probably something trivial but nevertheless help is greatly appreciated.

    thanks,
    Alex

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    You can try to extend the reveal animation to add the bounce.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    209
    Answers
    4

    Default

    OK, is there a guide somewhere on how to do this?

    thanks.

  4. #4
    Sencha User
    Join Date
    Jun 2009
    Location
    Italy
    Posts
    1,395
    Answers
    148

    Default

    Quote Originally Posted by squarefan View Post
    OK, is there a guide somewhere on how to do this?

    thanks.
    Nope.
    Sencha Touch is a framework so flexible that would be too hard to provide guides for all the functionalities that you can customize / add within your app.
    If you want to create something new, there's no better guide than dig into the source code, understand how things works and write down some code.
    Don't be afraid of the source code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •