- added support for boolean in
disableParallax
anddisableVideo
options - fixed
jarallaxVideo
support in typings (#224)
- updated video worker:
- added support for private Vimeo videos hash in URL
- fixed
play
method play whenendTime
reached
- added correct styles to support picture tag in jarallax.css
- added minified styles jarallax.min.css
- updated VideoWorker
- fixed wrong mute option provided to the VideoWorker
- added IntersectionObserver to detect element in viewport (increased performance)
- added support for Youtube Shorts
- added support for Vimeo high quality thumbnails
- added
containerClass
andvideoClass
options - updated TS typings
- updated demo site
- fixed Vimeo unmute when initial volume is 0
- fixed Vimeo volume value (used range from 0 to 1)
- split some core script functions to separate files
- removed unused methods
clipContainer
,addToParallaxList
,removeFromParallaxList
- removed
will-change
usage
- added VideoWorker globally in video extension since some project uses it
- added browserslist-config-nk
- updated eslint and prettier configs
- dropped IE support (supported modern browsers only)
- added ESM, UMD, and CJS modules
- added new event callbacks to video extension:
onVideoInsert
,onVideoWorkerInit
- added usage examples (https://github.com/nk-o/jarallax/tree/master/examples)
- added prettier for code formatting
- removed
clipContainer
method, use modern clip-path styles instead - removed check for transform with vendor prefixes
- changed gulp+webpack to rollup (less bundle size)
- changed simple-git-hooks to husky
- include TS typings in dist (#199)
- changed standard position for mobile devices to 'fixed' (working smoother)
- removed postinstall script
- added accessibility attributes to background videos (tabindex, aria-hidden)
- added GDPR compliance parameters to Youtube and Vimeo API calls (in video-workers library)
- updated dependencies
- additional styles for video elements (prevent click on video blocks)
- fixed video loop and image reset problem
- fixed bug with clip images in Safari v14 (#181)
- updated dependencies
- updated video-worker script (resolves #178)
- slightly changed styles, applied to container and to parallaxed images
- DEPRECATED Elements extension for Jarallax. Use
lax.js
instead https://github.com/alexfoxy/lax.js - added support for video error event (display image when error)
- added poster attribute for self-hosted videos
- fixed video background playing when disabled parallax only
- removed
rafl
dependency. Use native requestAnimationFrame instead
- added support for scrollable parents
- removed resize observer support (should work without it)