@Override
    public GlideAnimation<R> build(boolean isFromMemoryCache, boolean isFirstResource) {
        if (isFromMemoryCache || !isFirstResource) {
            return NoAnimation.get();
        }

        if (glideAnimation == null) {
            glideAnimation = new ViewAnimation<R>(animationFactory);
        }

        return glideAnimation;
    }
Returns a new {@link GlideAnimation} for the given arguments. If
isFromMemoryCache is {@code true} or isFirstImage is {@code false}, returns a
{@link NoAnimation} and otherwise returns a new
{@link ViewAnimation}.

@param isFromMemoryCache {@inheritDoc}
@param isFirstResource   {@inheritDoc}
core/src/main/java/com/bumptech/glide/request/animation/ViewAnimationFactory.java