This project adheres to Semantic Versioning.
- A
data-oc-outside
attribute to exclude a body's immediate children to be put insidedata-oc-wrap
element
- The default exported function is now
update
and check for attribute and scroll change
- Improved performance by passively listening to scroll event
- Improved performance by throttling the scroll event listener through requestAnimationFrame.
- Now default exporting a force
checkScroll
function
- Background color switch process for better performances.
- Now bundling the library with Rollup and exporting 3 versions:
main
,module
andbrowser
respectively as follows:overflow-color.cjs.js
,overflow-color.esm.js
andoverflow-color.umd.js
(plusoverflow-color.umd.min.js
).
- The test for page loaded or now, so the script can now be loaded
async
.
- A shortcut
data-oc
fordata-oc-top
anddata-oc-bottom
combined.
- A bug on Firefox.
- Complete rework.
- Initial release.