scrollreveal
Advanced tools
Changelog
[4.0.0] - 2018-08-06
options.desktop
.sr
is added to <html>
during instantiation when supported. #294height: 100%
is added to <body>
during instantiation when supported. #298options.opacity
is set to null
.options.cleanup
toggles whether generated styles are removed upon reveal completion (when options.reset
is false
). #292clean()
method removes specific generated styles and event listeners. #227destroy()
method removes all generated styles and event listeners. #227debug
static property toggles error messages in console. #351reveal()
method no longer accepts an interval
parameter. Instead, sequence intervals are now defined with options.interval
.isSupported()
is now static.options.distance
supports only em
px
and %
values.matrix3d()
property, with the correct prefix and only when necessary. #292version
is now a read-only instance property.options.viewFactor
clamps values outside of 0.0
to 1.0
.requestAnimationFrame
polyfill now reliably throttles callback invocations.