[library] Implement fading edge support