void fadeOut() {
        if(!hidden) {
            TranslateAnimation anim = new TranslateAnimation(
                    Animation.RELATIVE_TO_PARENT, 0.0f,
                    Animation.RELATIVE_TO_SELF, rtl ? -getHideRatio() : getHideRatio(),
                    Animation.RELATIVE_TO_PARENT, 0.0f,
                    Animation.RELATIVE_TO_PARENT, 0.0f);
            anim.setDuration(150);
            anim.setFillAfter(true);
            hidden = true;
            startAnimation(anim);
            postDelayed(() -> handleThumb.expandHandle(), anim.getDuration() / 3);
        }
    }
Animates the bar out of view
lib/src/main/java/com/turingtechnologies/materialscrollbar/MaterialScrollBar.java