Table Of Contents
EffectsΒΆ
New in version 1.7.0.
Everything starts with the KineticEffect
, the base class for
computing velocity out of a movement.
This base class is used to implement the ScrollEffect
, a base
class used for our ScrollView
widget effect.
We have multiple implementations:
ScrollEffect
: base class used for implementing an effect. It only calculates the scrolling and the overscroll.DampedScrollEffect
: uses the overscroll information to allow the user to drag more than expected. Once the user stops the drag, the position is returned to one of the bounds.OpacityScrollEffect
: uses the overscroll information to reduce the opacity of the scrollview widget. When the user stops the drag, the opacity is set back to 1.
- Damped scroll effect
- Kinetic effect
KineticEffect
KineticEffect.cancel()
KineticEffect.friction
KineticEffect.is_manual
KineticEffect.max_history
KineticEffect.min_distance
KineticEffect.min_velocity
KineticEffect.start()
KineticEffect.std_dt
KineticEffect.stop()
KineticEffect.update()
KineticEffect.update_velocity()
KineticEffect.value
KineticEffect.velocity
- Opacity scroll effect
- Scroll effect