mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Better default bounce animation
This commit is contained in:
4
dist/js/ionic.js
vendored
4
dist/js/ionic.js
vendored
@ -2488,6 +2488,8 @@ window.ionic = {
|
||||
circular: 'cubic-bezier(0.1, 0.57, 0.1, 1)',
|
||||
circular2: 'cubic-bezier(0.075, 0.82, 0.165, 1)',
|
||||
|
||||
bounce: 'cubic-bezier(.02,.69,.67,1)',
|
||||
|
||||
// It closes like a high-end toilet seat. Fast, then nice and slow.
|
||||
// Thanks to our @xtheglobe for that.
|
||||
toiletSeat: 'cubic-bezier(0.05, 0.60, 0.05, 0.60)'
|
||||
@ -2508,7 +2510,7 @@ window.ionic = {
|
||||
invertWheel: false,
|
||||
isVerticalEnabled: true,
|
||||
isHorizontalEnabled: false,
|
||||
bounceEasing: EASING_FUNCTIONS.circular,
|
||||
bounceEasing: EASING_FUNCTIONS.bounce,
|
||||
bounceTime: 600 //how long to take when bouncing back in a rubber band
|
||||
}, opts);
|
||||
|
||||
|
||||
@ -5,6 +5,8 @@
|
||||
circular: 'cubic-bezier(0.1, 0.57, 0.1, 1)',
|
||||
circular2: 'cubic-bezier(0.075, 0.82, 0.165, 1)',
|
||||
|
||||
bounce: 'cubic-bezier(.02,.69,.67,1)',
|
||||
|
||||
// It closes like a high-end toilet seat. Fast, then nice and slow.
|
||||
// Thanks to our @xtheglobe for that.
|
||||
toiletSeat: 'cubic-bezier(0.05, 0.60, 0.05, 0.60)'
|
||||
@ -25,7 +27,7 @@
|
||||
invertWheel: false,
|
||||
isVerticalEnabled: true,
|
||||
isHorizontalEnabled: false,
|
||||
bounceEasing: EASING_FUNCTIONS.circular,
|
||||
bounceEasing: EASING_FUNCTIONS.bounce,
|
||||
bounceTime: 600 //how long to take when bouncing back in a rubber band
|
||||
}, opts);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user