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
KineticEffectKineticEffect.cancel()KineticEffect.frictionKineticEffect.is_manualKineticEffect.max_historyKineticEffect.min_distanceKineticEffect.min_velocityKineticEffect.start()KineticEffect.std_dtKineticEffect.stop()KineticEffect.update()KineticEffect.update_velocity()KineticEffect.valueKineticEffect.velocity
- Opacity scroll effect
- Scroll effect