How to use universal-animation - 1 common examples

To help you get started, we’ve selected a few universal-animation examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alibaba / rax / components / rax-xslider / src / mods / views / DefaultView.js View on Github external
}, loopIndex === queue.posIndex);

            if (result && result.element) {
              transitionProps.push({
                easing,
                ...result,
                duration
              });
            }
          }
        });
      }
    });


    this.slideAnimate = animate({
      forceTransition: true,
      props: [{
        element: wrap,
        property: vertical ? 'transform.translateY' : 'transform.translateX',
        easing,
        duration: Math.max(this.props.isSlideEnabled ? duration : 0, MIN_DURATION),
        end: offset,
      }, ...transitionProps]
    }, (e) => {
      this.curIndex = index;
      if (!options.ignoreEvent) {
        this.handleLoadMore({index, params, prevIndex, duration, easing, isInitial: options.isInitial});
        afterSwitch({index, loopIndex, prevLoopIndex, params, prevIndex, duration, easing});
      }
      this.handleScreensDetroy();
      this.resolveObserver();

universal-animation

A universal animation API.

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis

Popular universal-animation functions