Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IAnimationEasing

Provides aliases for animation easing. These are often used when using the React Native Animated APIs: `ts import * as React from 'react'; import { Animated } from 'react-native';

export class AnimatedComponent extends React.PureComponent { private value: Animated.Value = new Animated.Value(0);

componentDidMount(): void { const animate = () => { Animated.sequence([ Animated.timing(this.value, { toValue: 10, duration: theme.constants.animation.timing.normal, easing: theme.constants.animation.easing.normal, useNativeDriver: true, }), Animated.timing(this.value, { toValue: -10, duration: theme.constants.animation.timing.normal, easing: theme.constants.animation.easing.normal, useNativeDriver: true, }), ]).start(({ finished }) => { if (finished) { animate(); } }); }; animate(); }

componentWillUnmount(): void { this.value.stopAnimation(); }

render(): React.ReactNode { return (<Animated.View style={{ transform: [{translateX: this.value }]}}); } } `

see

AnimationEasing

see

https://easings.net/

Hierarchy

  • EasingStatic
    • IAnimationEasing

Implemented by

Index

Properties

bounce

bounce: EasingFunction

circle

circle: EasingFunction

cubic

cubic: EasingFunction

ease

ease: EasingFunction

easeInBack

easeInBack: EasingFunction

easeInBounce

easeInBounce: EasingFunction

easeInCirc

easeInCirc: EasingFunction

easeInCubic

easeInCubic: EasingFunction

easeInElastic

easeInElastic: EasingFunction

easeInExpo

easeInExpo: EasingFunction

easeInOutBack

easeInOutBack: EasingFunction

easeInOutBounce

easeInOutBounce: EasingFunction

easeInOutCirc

easeInOutCirc: EasingFunction

easeInOutCubic

easeInOutCubic: EasingFunction

easeInOutElastic

easeInOutElastic: EasingFunction

easeInOutExpo

easeInOutExpo: EasingFunction

easeInOutQuad

easeInOutQuad: EasingFunction

easeInOutQuart

easeInOutQuart: EasingFunction

easeInOutQuint

easeInOutQuint: EasingFunction

easeInOutSine

easeInOutSine: EasingFunction

easeInQuad

easeInQuad: EasingFunction

easeInQuart

easeInQuart: EasingFunction

easeInQuint

easeInQuint: EasingFunction

easeInSine

easeInSine: EasingFunction

easeOutBack

easeOutBack: EasingFunction

easeOutBounce

easeOutBounce: EasingFunction

easeOutCirc

easeOutCirc: EasingFunction

easeOutCubic

easeOutCubic: EasingFunction

easeOutElastic

easeOutElastic: EasingFunction

easeOutExpo

easeOutExpo: EasingFunction

easeOutQuad

easeOutQuad: EasingFunction

easeOutQuart

easeOutQuart: EasingFunction

easeOutQuint

easeOutQuint: EasingFunction

easeOutSine

easeOutSine: EasingFunction

exp

exp: EasingFunction

linear

linear: EasingFunction

normal

normal: EasingFunction

Provides the normal easing function to use in the application. This is often set to provide a consistent feel for animations in the application

see

https://easings.net/#easeInSine

quad

quad: EasingFunction

sin

sin: EasingFunction

step0

step0: EasingFunction

step1

step1: EasingFunction

Methods

back

  • back(s: number): EasingFunction
  • Parameters

    • s: number

    Returns EasingFunction

bezier

  • bezier(x1: number, y1: number, x2: number, y2: number): EasingFunction
  • Parameters

    • x1: number
    • y1: number
    • x2: number
    • y2: number

    Returns EasingFunction

elastic

  • elastic(bounciness: number): EasingFunction
  • Parameters

    • bounciness: number

    Returns EasingFunction

in

  • in(easing: EasingFunction): EasingFunction
  • Parameters

    • easing: EasingFunction

    Returns EasingFunction

inOut

  • inOut(easing: EasingFunction): EasingFunction
  • Parameters

    • easing: EasingFunction

    Returns EasingFunction

out

  • out(easing: EasingFunction): EasingFunction
  • Parameters

    • easing: EasingFunction

    Returns EasingFunction

poly

  • poly(n: number): EasingFunction
  • Parameters

    • n: number

    Returns EasingFunction