Closed SergeyChehuta closed 6 years ago
Could you add a property to change opacity only after some offset? for example:
var getOpacity = function getOpacity(offset, limit) { const minOffset = limit/2 // some.prop.here if (Math.abs(offset) < minOffset) return 1 return 1 - (Math.abs(offset) - minOffset) / limit; };
Implemented in version 0.0.6 the prop is called min
0.0.6
min
Could you add a property to change opacity only after some offset? for example: